Questions tagged [vhosts]

A virtual host of a HTTP/HTTPS webserver (virtual host in Apache, server block in nginx, ...)

A virtual host of a HTTP/HTTPS webserver (virtual host in Apache, server block in nginx, ...). Use this tag if your question refers to configuration and/or bugs in relation to the virtual host you configured for your application.

The term Virtual Host refers to the practice of running more than one web site (such as company1.example.com and company2.example.com) on a single machine. Virtual hosts can be "IP-based", meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user.

Apache was one of the first servers to support IP-based virtual hosts right out of the box. Versions 1.1 and later of Apache support both IP-based and name-based virtual hosts (vhosts). The latter variant of virtual hosts is sometimes also called host-based or non-IP virtual hosts.

https://httpd.apache.org/docs/2.4/vhosts/

1009 questions
4
votes
1 answer

Node.js / Express with vhost conflict with Sails.js framework app

I am trying to setup my Nodejs/Express hosting server to have multiple applications (Sails.js app type) running on my VPS but I got this error : /srv/data/web/vhosts/default/node_modules/vhost/index.js:78 throw new TypeError('argument server is…
Miguel Bocquier
  • 2,449
  • 5
  • 22
  • 38
4
votes
3 answers

Vagrant port forwarding does not work with vhosts on Fedora 20

Spec: OS: Linux fedora 3.12.9-301.fc20.x86_64. VirtualBox: 4.3.6 Vagrant: 1.4.3 I am trying to forward host's port 8080 to guest's port 80 using following vagrant configurations. config.vm.network "private_network", ip:…
kidonchu
  • 785
  • 1
  • 9
  • 20
4
votes
2 answers

Plesk nginx config for every domain and subdomain

I use Plesk and I have three domains and subdomains with different ngnix configs. At the moment I change the ngnix config in the /etc/ngnix/plesk.conf.d/vhost/manual after every update, because my changes are being overwritten by the httpdmng. Now…
Reto Arnold
  • 63
  • 1
  • 1
  • 7
4
votes
1 answer

Eclipse Xdebug Freezes at 57%

My problem: When launching a debug configuration from Eclipse for one of my php pages, the page opens successfully in Chrome but the Eclipse debugger freezes at 57% (in the bottom right hand corner of Eclipse) and never progresses further. The set…
faridghar
  • 1,445
  • 2
  • 13
  • 25
4
votes
2 answers

Remove tomcat port number in the http URL

I have a webapplication hosted on tomcat. I'm trying to achieve a URL redirection of my webappname. So, I'm using the vhosts config in apache of my xampp installation. My tools : Tomcat, XAMPP, APACHE Changes I made : In…
Satish Jonnala
  • 619
  • 3
  • 9
  • 21
4
votes
3 answers

Automation of Dynamic Virtual Host in Apache httpd-vhosts.conf and .htacces (XAMPP)

I am trying to set up some automation on my local dev machine. Normally I start all my projects like this Open Hosts file, set up a DNS entry like 127.0.0.1 example.com www.example.com Open httpd-vhosts.conf file and add an entry, something like…
Atif
  • 10,623
  • 20
  • 63
  • 96
4
votes
1 answer

Apache vhost overriding config?

I have Apache installed on my VPS. It is hosting one site on it, lets call it demo.com (located in /var/www/html/demo.com), but I also have files in /var/www/html that I want to view by pointing my browser to the IP of the VPS. Currently it seems if…
Sheldon K
  • 115
  • 2
  • 7
4
votes
1 answer

Can I serve one django app from 2 different apache vhosts?

I've got a django app that's currently available at dev.mydomain.com, and I'm about to move it to clientsdomain.com. I'm on Ubuntu so I'll run a2dissite dev.mydomain.com and then a2ensite clientsdomain.com. My vhost files are identical except for…
Aidan Ewen
  • 13,049
  • 8
  • 63
  • 88
4
votes
1 answer

Zend Framework 2 without Vhost configuration

I had finished my first web application using Zend Framework 2 and I'm about to put it online. But may web host doesn't allow me to change my vhost configuration! The .htaccess file is allowed. So my question is: How to set up my ZF2 app with only…
Vinicius Garcia
  • 1,740
  • 4
  • 30
  • 54
4
votes
2 answers

Adding a tab in a Shell script

So I have an extremely simple shell script, where it inputs an IP address and a domain name in the hosts file of a person's computer. For "development purposes only!" it works fine, it just inputs the IP address and domain name like…
djowinz
  • 356
  • 1
  • 4
  • 17
4
votes
3 answers

MAMP 2 Multiple VirtualHosts with SSL

I'm currently running into trouble configuring MAMP 2 to use SSL with multiple virtual hosts (it is working fine with one). In my case, it will only provide an SSL connection for the first vhost listed in the https-ssl.conf file. In my…
user1086746
  • 203
  • 2
  • 5
4
votes
1 answer

apache virtual host definition with regex

For development projects I point real domains to localhost using hosts file. and I add virtual host definition to apache config file. My question is it possible to redirect all "xyz.com" domains to "d:/xampp/htdocs/websites/xyz.com" directory ? this…
bkilinc
  • 989
  • 2
  • 13
  • 28
3
votes
1 answer

How to Restrict PHP's File Access to DOCUMENT_ROOT

Is it possible to restrict PHP's file access to its document root? Basically on my work's server we have our domains in a file structure like: /home/something/domains/domain1/ /home/something/domains/domain2/ /home/something/domains/domain3/ Right…
Andy Groff
  • 2,660
  • 1
  • 21
  • 25
3
votes
0 answers

WAMP slow to respond

When i access any virtual host on my installation of wamp, the browser hangs for about 4-5 seconds. After months of dealing with this issue, I found that the only way to fix it is to run ipconfig /flushdns. This seems to be a temporary fix that…
Matt Kaye
  • 465
  • 1
  • 5
  • 15
3
votes
1 answer

Node.js in production with forever and connect's vhosts / nginx alternative?

I'm using mainly node.js for my projects and I use nodemon for development and forever for production. I usually split my projects in vhosts so my structure could be something like this: bootstrap.js apps/ admin/ front/ api/ and my…
panosru
  • 2,709
  • 4
  • 33
  • 39