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

learn more… | top users | synonyms

5
votes
2answers
11k views

Redirect Permanent and https

I just set up HTTPS on my server, and I have an issue with redirect permanent. Example http://domain.com/index.html it redirect me to http://www.domain.comindex.html The / (tail ending slash) is ...
5
votes
2answers
125 views

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 ...
4
votes
4answers
8k views

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 ...
4
votes
1answer
387 views

How to organize /var/www/ for multiple users and vhosts in apache

I've been creating new directories for each site in the var folder like this: /var/www -- localhost -- owned by localuser:www-data (+setuid/setguid) /var/www-somesite -- somesite.com, ...
4
votes
1answer
658 views

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 ...
4
votes
1answer
99 views

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: <VirtualHost *:80> ServerName ...
3
votes
1answer
578 views

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: ...
3
votes
1answer
3k views

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

In /etc/apache2/sites-available/example.com: <VirtualHost *:443> ServerName www.example.com DocumentRoot /var/www/example.com/htdocs SSLEngine on ...
3
votes
1answer
538 views

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 ...
3
votes
1answer
88 views

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 ...
3
votes
2answers
1k views

Apache2 virtual host localhost doesn't render CSS when offline because of absolute path

I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
3
votes
1answer
3k views

How to setup VPS(Virtual hosting server) in Godaddy

I recently purchase a VPS from GoDaddy. Now i need to Setup the virtual server to go ahead and install my website. Please guide how to go about. Thanks in advance
3
votes
1answer
296 views

Subdomain configuration

Configure all subdomains to point to the same server IP as the main domain Configure all subdomains in virtual host to point to the same location as the main domain What is the easiest way to do ...
2
votes
3answers
648 views

How to remove /index.html

How to make redirect /index.html -> / in Apache? Redirect /index.html http://domain-name.com/ Is causeing infinite loop when opening home page.
2
votes
2answers
583 views

a good VPS to grow into (cheap at start, multiple sites, php and python, easily custom-configurable) [duplicate]

Possible Duplicate: How to find web hosting that meets my requirements? We develop and host for many clients. I am choosing an upgrade over shared hosts, preferably a VPS. The new site ...
2
votes
2answers
145 views

backlinks: two domains with same IP

I run several different web pages on different servers (with different IP addresses). These pages are linking to each other in order to boost number of backlinks pointing to my pages. I would like ...
2
votes
1answer
17k views

Apache: Virtual Host and .htacess for URL Rewriting not working

I have configured a virtual host in my local machine and every thing is working fine. Now I want to use SEO friendly urls. To achieve this I have used the .htaccess file. My virtual host ...
2
votes
2answers
62 views

Running my site using https and a load balancer

I currently have two webservers behind a load balancer that are running my websites. I'm considering buying an SSL certificate for one of my websites and converting it to https. What mechanics to I ...
2
votes
1answer
56 views

How should I set the default virtualhost?

I want to run 2 websites. One for www.example.com, and the other for everything else (www.example2.com, www.example3.com) How I do it? I tried: <virtualhost *:80> ServerName www.example.com ...
2
votes
3answers
1k views

Under an Xampp install, I modify the apache httpd-vhosts.conf file and then my Apache server will not start

I have read all the articles but still must be doing something wrong... I modified the httpd-vhosts.conf file to access the project I am working on... I have tried many different configurations and ...
2
votes
2answers
182 views

Apache2: Deny access for mail.mydomain.com but allow www.mydomain.com, both points same ip

i have a linux mail+http server located throguh Internet at www.mydomain.com. Domain was bought at GoDaddy so after configuring the server and getting the public ip address i went at GoDaddy's profile ...
2
votes
1answer
476 views

Virtual Host under MacOSX not working

I have setup a virtualhost for MacOSX Apache installation. These are my steps: edit /private/etc/apache2/httpd.conf removing comment from: Include /private/etc/apache2/extra/httpd-vhosts.conf ...
2
votes
1answer
49 views

Apache virtual hosts configuration for MAMP results in new sites going to the same folder

I have MAMP installed in my mac. Why is it that every time I create a new site, they all go to the same folder? Here is my /etc/hosts file: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 ...
2
votes
1answer
1k views

SetEnv directive not working for localhost VirtualHost but works for other VirtualHost

I have two virtual hosts declared: localhost and test. Both use the SetEnv directive and point to the same DocumentRoot: NameVirtualHost *:80 <VirtualHost _default_:80> DocumentRoot ...
2
votes
1answer
205 views

mod rewrite doesn't work when i added multiple domains

i have redhat linux server and i was using /var/www/html to display my site. By using the following directive rewrite mod was working fine. <IfModule mod_rewrite.c> # Enable mod_rewrite ...
2
votes
1answer
198 views

How can I point wildcard domains to a folder in Apache?

I am developing an app using PHP and deploying it on Apache on the Amazon AWS environment. This app requires to be made available to customers from their own chosen domain name? How can I achieve ...
2
votes
1answer
121 views

vhost set up help — domain and ip point to the same site

I have these virtual hosts set up however when I browse to domain.com or 123.45.67.89 they both point to /var/www/html/. How can I get them set up so they point to correct DocumentRoot? ...
2
votes
2answers
4k views

Apache2: How to host apps at different ports with SSL?

I'm trying to achieve quite simple task actually. I bind application to a port, I enable SSLEngine at each VirtualHost entry for that port. Everything works beside one thing: if you type url that ...
2
votes
2answers
152 views

My virtual server is created but it's not showing anything when I visit the site?

I have created a virtual sever as below for my site: I've specified the folder and domain name: And I created a master zone for the domain, and NS1 and NS2 has been set for the domain. everything ...
2
votes
2answers
414 views

Rackspace Cloud Servers in Europe?

We have setup a cloud virtual server at rackspace in the US, but we use it from Europe. I found out I am not quite happy with the response time. Of course I knew that there would be some latency. But ...
2
votes
2answers
2k views

How to Add Two Domains ON 1 IP using webmin

I am a new user of webmin and I have two domains site1.com and site2.net. I have one dedicated IP for the server and I have set site1.com to use following name servers ns1.site1.com and ns2.site1.com ...
2
votes
1answer
3k views

Webmin - Setting up multiple virtual hosts - Subdomains

Can someone please help me in using WEBMIN to setup virtual hosts. My current domain www.MYDOMAINLOLFAKE.com currently functions. Settings are as follows - Apache - Handles the name-based server ...
1
vote
1answer
416 views

Why isn't HTTP Authentication working on this Apache HTTPS site?

I have set up a private MoinMoin wiki, accessed through HTTPS, but I cannot get Basic HTTP Authentication to work on it. I have it working on another site, using a similar vhosts file, so I cannot ...
1
vote
2answers
1k views

Why is my subdomain not showing up?

I am hosting a website on Host Gator: http://www.flowerwood.com. It is working correctly. I also have a subdomain that I setup using cPanel called http://plants.flowerwood.com Right now I have a very ...
1
vote
1answer
4k views

What is wrong with this Apache httpd.conf file for vhosts?

What is wrong here? NameVirtualHost *:80 <VirtualHost *:80> ServerName www.apples.co.uk DocumentRoot /var/www/apples.co.uk RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.apples\.co\.uk$ [NC] ...
1
vote
1answer
185 views

Assign subdomains to separate ports on web server

I have set up an Abyss web server as a little experiment, and I want to know if it is possible to assign subdomains to different ports on the machine the web server is running on. I have a couple web ...
1
vote
2answers
8k views

Virtual host not working in Windows 7 XAMPP

I am using Windows 7 and XAMPP. I want to create a virtual host so I added 127.0.0.1 myawesomeproject to my hosts file (C:\Windows\System32\drivers\etc\hosts) like this: # Copyright ...
1
vote
1answer
997 views

Purposes and priorities of Apache conf files

I've installed an Apache2 server on a Linux Box (Ubuntu 10.04 TLS) and am trying to setup some virtual host and proxies. There is some stuff in the apache2.conf, an empty httpd.conf (which was used ...
1
vote
1answer
75 views

Need help getting 'www' working for domains and subdomains using Apache & DNS

I've searched through a lot of different posts asking this question and I haven't really seen a straight forward answer on how to get this working. At the moment, with the following settings, adding ...
1
vote
2answers
110 views

Domain Name Not resolving with webhost nameservers and without www

Searched all over and tried playing with httpd.conf , nothing works. The domain name can be resolved with www.domain.com but without www its does not resolve. Advice for A Records does not work. I ...
1
vote
2answers
699 views

Automatic redirection from http to https with .htaccess authentication in virtual hosting

Hi I have configured Virtual host on apache with .htaccess authentication with SSL. It's working fine when I typed url https://www.example.com:9004/test.php but when I typed ...
1
vote
1answer
1k views

Symbolic link not allowed or link target not accessible: /var/www on Ubuntu 11.04

I am getting a 403 when i access http://mayfieldafc.local/ upon looking in the Apache logs I am getting: [Wed Nov 16 12:32:59 2011] [error] [client 127.0.0.1] Symbolic link not allowed or link target ...
1
vote
1answer
161 views

How is web hosting CPU usage measured?

Among virtual hosting providers, there is usually an amount of storage and bandwidth specified in the service description (example: 50 GB storage, 1 TB bandwidth/month) but no such thing for CPU ...
1
vote
1answer
2k views

mod_rewrite with Apache -> mod_jk -> tomcat

Related to some of my earlier questions. I now have a setup I quite like; Apache httpd listening on port 80 accepting http and https connections. Several Tomcat instances running on several AJP ...
1
vote
1answer
26 views

WAMP VirtualHost 403

I recently installed WAMP, and started developing on its Apache server. Given that my text editor (Sublime) didn't have permissions to write on C disk directly, I changed my default DocumentRoot to My ...
1
vote
1answer
37 views

Apache: Server the same document root from multiple ports

Consider the following apache site file: <VirtualHost *:9000> SSLEngine on ... DocumentRoot /var/www <Directory ...> ... </Directory> </VirtualHost> ...
1
vote
1answer
155 views

SSL works on https://dedicatedip but not https://domain

My SSL certificate works on my apache web server but only when I do https://Dedicated_vps_ip. When I do https://domain.com it just doesn't work. I've tried almost everything. What am I doing wrong? ...
1
vote
1answer
192 views

Write to an alias directory on Apache

How do I enable writing via PHP to an alias directory. I have the following on my VirtualHost: <VirtualHost *:80> ServerName domain.com ServerAlias m.domain.com ...etc AliasMatch ...
1
vote
1answer
237 views

Virtual host in Apache Zend

I'd like to ask you if you can tell me why I can't get Vhost in Apache to work my Vhostconf is: NameVirtualHost *:80 <VirtualHost _default_:80> ServerAdmin ...
1
vote
1answer
113 views

Can't Get a Virtual Host to Work

I can't get a specific virtual host to work. This is the first part of my httpd-vhosts.conf file: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/Volumes/Data ...