Questions tagged [virtualhost]

Virtual hosting refers to the practice of hosting multiple websites on a single server.

Virtual hosting refers to the practice of hosting multiple websites on a single server. Virtual Hosts can be name-based, or IP based.

Name-based Virtual Hosts (common in shared hosting environments) differ by their domain name. In a name-based virtual host environment, the websites for example1.com and example2.com would both be hosted on the same machine, with the same IP address.

IP-based Virtual Hosts have a separate IP address for each virtual host. In this case, each separate website would require it's own unique IP address on the machine.

145 questions
9
votes
1 answer

Possible to split virtual host definitions into multiple apache conf files?

I have a single server that I use to host a whole bunch of smallish websites. It's recently come to my attention that a service called LetsEncrypt allows me to get an SSL certificate for free. The catch, as far as I can tell, is that they don't…
Pecon
  • 113
  • 1
  • 1
  • 5
9
votes
3 answers

Have disabled apache site config file 000-default.conf, but it still seems active. Why?

I added a file mysite.conf to my apache sites-available folder with the correct settings, then enabled it and reloaded apache, and it isn't working. I want to disable the default site config as defined in 000-default.conf to see if that fixes the…
Highly Irregular
  • 540
  • 2
  • 6
  • 17
8
votes
2 answers

What is the best practice for redirecting the IP address of a web server when it hosts multiple domain names?

I plan to have 2 separate domain names pointing to the same Apache installation with WordPress multi-site. I can set virtual hosts correctly for each domain, no problems. I can have both domains point to the same host, no worries. Currently I have…
Mike
  • 151
  • 6
6
votes
4 answers

How do I hide the port in my URL?

What am I missing? If I go to mysite.com:9999 I get my site, but not mysite.com Obviously the users shouldn't need to type in the port, so what do I need to do? I'm not really trying to hide the port so much as not require the user to type it in…
Dallas
  • 394
  • 2
  • 4
  • 15
6
votes
1 answer

Applying domain name to a directory

I have a Linode instance of Ubuntu 10.4 using the LAMP stack to host an instance of Magento and a couple other things. I currently have Magento set up at: http://123.459.780.123/magento. When I apply my domain using the Linode tools, I can apply it…
Ryan Hayes
  • 417
  • 1
  • 6
  • 11
5
votes
1 answer

Apache Virtual Host different depending on client ip?

What I'm trying to accomplish is: 1. A person, with IP 192.168.1.5 loads my webserver (192.168.1.2) and reaches htdocs/ 2. Another person, with ip 192.168.1.6 does the same request, and reaches htdocs/folder/ If possible, I'd like to stick to port…
Frederik Spang
  • 200
  • 1
  • 8
5
votes
2 answers

Are webhosts that require NS instead of a CNAME common?

I've just signed up with a webhost (which I prefer not to name) and I'm reasonably happy with it. The only nit was when I was ready to put a site online and I asked the support line to what name I should point my 'www' CNAME to. They responded that…
billpg
  • 323
  • 2
  • 7
5
votes
3 answers

Redirect to HTTPS is missing a slash after the domain name

I just set up HTTPS on my server, and I have an issue with redirect permanent. Example: http://example.com/index.html redirects me to http://www.example.comindex.html. The / (tail ending slash) is missing and I can't figure out how to fix it. It…
Clem
  • 51
  • 1
  • 1
  • 2
5
votes
4 answers

SSLCipherSuite settings not taking effect from Apache ssl.conf, only when duplicated in each virtual host

I have an odd issue. The SSLProtocol config is getting applied in my ssl.conf file but the SSLCipherSuite config is not. I have tested this by changing each option and running scan with Qualys SSL Labs. After several hours of banging my head against…
JT Fair
  • 51
  • 1
  • 3
4
votes
1 answer

Updated Apache from 2.2 to 2.4 and now my sub domains are broken

Upon trying to visit any of my subdomains here is the error recieve in my error.log file: [Tue Jul 15 11:17:42.924790 2014] [core:alert] [pid 17309] [client 108.162.241.152:26427] /var/www/.htaccess:
ComputerLocus
  • 232
  • 3
  • 11
4
votes
1 answer

Google AdSense is not reviewing the URL I submitted, using my local development URL instead

I'm very confused. I'm trying to get my site (let's just say www.example.com) approved for Google AdSense. I submitted the application using "www.example.com" and I got a reply from AdSense saying my application was rejected because…
Gavin
  • 247
  • 4
  • 10
4
votes
1 answer

How can I force a VirtualHost in Apache to not listen for undefined subdomains on 443?

In /etc/apache2/sites-available/example.com: ServerName www.example.com DocumentRoot /var/www/example.com/htdocs SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem …
Charlie Schliesser
  • 475
  • 1
  • 5
  • 16
4
votes
1 answer

Apache Virtual Host does not work

I've problems setting up a virtual host on windows7, so that I can develop multiple pages on my localhost. To set up the virtual Host, I've edited 3 Files: httpd-vhosts.conf in apache\conf\extra httpd.conf in apache\conf hosts in…
4
votes
1 answer

Unable to view 2 local sites over network

I have 2 websites running on my local machine that I'd like to view from other machines on the same network. For /etc/apache2/sites-available/site1.com: ServerName site1.com DocumentRoot /var/www/answers/app/webroot …
gentrobot
  • 185
  • 5
4
votes
1 answer

Prevent interactions between Apache virtual hosts on the same server

I have a VPS running Apache 2.0, with multiple domains and multiple IPs set. In document root /var/www/html/ I have http://serverA.com and I created a virtual host on folder /var/www/html/serverB serving http://serverB.com. They work great for both,…
soosooo
  • 41
  • 2
1
2 3
9 10