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

learn more… | top users | synonyms

1
vote
1answer
17 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
0answers
32 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 ...
1
vote
1answer
58 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
1answer
39 views

Apache Redirect to another folder, both within and outside document root

I've recently set up a home web/media server and having a few difficulties with a few of the settings. It's working fine for serving webpages etc but I've now reorganised the structure of the main ...
1
vote
2answers
88 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 ...
3
votes
1answer
326 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: ...
2
votes
2answers
93 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 ...
0
votes
0answers
53 views

Google AdSense is not reviewing the URL I submitted, using my local virtual host url instead

I'm very confused. I'm trying to get my site (let's just say www.mysite.com) approved for Google AdSense. I submitted the application using "www.mysite.com" and I got a reply from AdSense saying my ...
0
votes
1answer
56 views

Why is my subdomain not returning anything?

I've set up DNS record to test out using virtual hosts prior to moving one of my wordpress installs out of a subdomain. I want to move from mysite.com/blog to blog.mysite.com. I've tested the DNS ...
1
vote
1answer
249 views

Placing multiple Apache VHost sites in 'maintenance mode' with 1 rewrite rule

I have an Apache2.2 webserver set up to handle dozens of virtual host sites for our organization. I am looking for a simple method to temporarily 'turn off' all the sites by having all site requests ...
0
votes
0answers
8 views

Is there a way to compare the speed of potential webhosts? [duplicate]

I want to get VPS hosting, but don't know according to what should I choose, especially how do I know if its speedy enough?
0
votes
2answers
62 views

Redirect public traffic to a different subfolder, while local traffic remains unchanged

I would like to have local (intranet) HTTP traffic go to the /var/www/html folder while any public traffic goes to the subfolder, /var/www/html/public I've tried this configuration, with some ...
0
votes
0answers
93 views

Apache VirtualHost Subdomain redirects to IP

I have one VM (LAMP) with a static IP. There are two Subdomains configured on this Machine. If i browse one of the subdomains, it executes the files specified in its DocumentRoot. The problem here is ...
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
0answers
45 views

Apache2 only first virtual host is working

i have a probelm with this configurations, only the first virtual host is working and other under the same domain point to the first www.firebuggger.com). do you guys have a clue? NameVirtualHost ...
0
votes
0answers
68 views

How to load the WordPress themes correctly in my local host?

I have a new customer that has send me a WordPress project. So to install the project it in my local machine, I have created a virtual host like the one below in my machine. So I can access like this ...
1
vote
1answer
151 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
184 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 ...
0
votes
1answer
168 views

Linux Mint 15 + Rails with Apache/Passenger

I am only beginner and try to understand how to configure apach web-server for my RubyOnRails app. I have linux, installed apache2, passenger and apache2-module for passenger. While installing i got ...
0
votes
1answer
2k views

Apache virtual host does not work properly

I have read a lot of information all over the Internet regarding this subject, and can not figure out what I'am doing wrong. I'm trying to host two websites under different names locally under Windows ...
0
votes
1answer
299 views

Apache is redirecting all https requests to one vhost

Apache novice here, We run a server with a few dozen vhosted sites, under apache 2.2.22 on ubuntu 12.0.4. None of them had a SSL before. We had a client request one the other day, and shortly after ...
1
vote
1answer
219 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
2answers
634 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 ...
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 ...
1
vote
1answer
111 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 ...
0
votes
1answer
902 views

Apache server not able to read cookies from Browser

I have developed a login authentication page using cookies (with spring security) where for the first time, the user will need to get itself authenticated. Once the user gets successfully ...
3
votes
1answer
2k 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 ...
2
votes
2answers
61 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
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 ...
4
votes
1answer
611 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 ...
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 ...
0
votes
1answer
1k views

Trying to host server for external access - Apache, VirtualBox & Portforwarding

Banging my head on the wall at this stage... Trying to host my Apache site on Ubuntu 12.10 with VirtualBox. Running Windows 8 host. Things I've done: Ensured Apache is listening on ports 80, 443 ...
2
votes
1answer
203 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 ...
3
votes
1answer
524 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 ...
2
votes
1answer
2k 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
0answers
132 views

Apache, Rewrite Rule and Directories

I'm using the current virtual host: <VirtualHost *:80> ServerAdmin webmaster@mysite ServerName example.co.uk ServerAlias www.example.co.uk DocumentRoot ...
2
votes
3answers
623 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.
1
vote
1answer
179 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 ...
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 ...
2
votes
1answer
195 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 ...
0
votes
1answer
139 views

Do Apache virtual hosts perform better when listening to different ports?

I plan to use mod_proxy to route requests to Apache virtual hosts based on the URL. example.com/foo/x is routed to foo.example.com/x, example.com/bar/x is routed to bar.example.com/x, etc. Are there ...
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? ...
0
votes
1answer
566 views

Apache: how to create subdomain on name-based virtualhost?

i have name-based hosting, lets name it my.address.com - my friend have 'white' ip -address.com and gave me virtual machine than i can access via ssh, also, he made some magic with ports and now after ...
-4
votes
1answer
139 views

How can set a local host ip address to forward to local host virtual host domain name [closed]

I want to forward different domain names to single IP Address (local for testing), but how can i recognize in pc that which domain name should be linked to which folder? For example in my windows ...
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 ...
1
vote
1answer
49 views

Prevent virtual host on same server interact on apache [duplicate]

Possible Duplicate: Prevent virtual host on same server interact on apache I have a vps apache 2.0 webserver, with multiple domains and multiple IPs set. In document root /var/www/html/ I ...
1
vote
1answer
556 views

SSL on multiple directories

I have a website that is http, but has a port set up for https for a specific directory that is for the shopping cart. Now I'd like to use our SSL on a different directory in the same site as well. ...
0
votes
2answers
1k views

apache virtual host problem on windows 7 - please explain

This problem has never occurred in the past (i have tried this many times) but this time, ALL virtual hosts defined in the virtual-hosts.conf file in the apache installation directory direct the ...
0
votes
1answer
800 views

How to use different php.ini files for different VirtualHosts?

I have my site and it's staging subdomain running on the same CentOS machine running apache. The subdomain is created using a VirtualHost, and I use it to find any bugs before I push to production. I ...
2
votes
2answers
3k 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 ...