Questions relating to virtual hosting; that is, serving content for multiple logically-separate entities from the same machine. Usually relates to name-based virtual hosting in the web server, but can also cover other protocols such as SMTP or IMAP.

learn more… | top users | synonyms (3)

0
votes
2answers
2k views

Apache Virtual Host with directory aliases

I'm trying to set up a dynamic virtual host in apache with a directory alias pointing to a difirent path for every domain. Here's what I'm trying to achive. Say I have 2 domains: * www.domain1.com ...
0
votes
1answer
141 views

Setting up my vhosts file correctly in WAMPServer

I am trying to setup an mobile app that I have received from another dev locally on my machine, this is a cordova based mobile app that is basically html5/javascript etc.. I have added the following ...
2
votes
1answer
103 views

Subdomain redirecting to HTTPS despite lack of rewrite rule

I have a domain at staging.example.com which I want to run without HTTPS for testing purposes. The main domain (example.com) does use SSL. I am trying to find a rewrite rule that will forward to ...
0
votes
0answers
56 views

ec2 instance access via browser on subdirectory not working

I try to access a subdirectory via public dns vom amazon. I configured a virtual host: DocumentRoot "/var/www/html" NameVirtualHost *:80 <VirtualHost *:80> ServerName www.example1.de ...
0
votes
1answer
176 views

hosting two public facing website on single ec2 instance

I am trying to host 2 website xxx.com and yyy.com on a single amazon ec2 instance. So far this is what I have done. Created ec2 instance with Ubuntu and set up apache, mysql & Php On Ec2 I ...
0
votes
0answers
97 views

When trying to ProxyPass with SSL on Virtual Host (Apache2) I receive AH01630: client denied by server configuration: /var/www/

To give a little background; I am on EC2. I am running Apache2 version 2.4.7. I have also opened port 443 on my security group to allow SSL traffic. What I am trying to do in the long run is have a ...
0
votes
1answer
140 views

is “ServerAdmin email@domain.tld” required in the VirtualHost in Apache?

I rather not have ServerAdmin in my VirtualHost because all it does is attract spam. has no use what so ever. can it be ignored ?
2
votes
2answers
3k views

Allow access to PhpMyadmin only on a specified virtualhost

I'm working on a multiple virtualhost Environment. I've installed PhpMyadmin for Mysql Remote Control. Environment is configurate as below: one.domain.com two.domain.com onlyphpmyadmin.domain.com ...
2
votes
1answer
110 views

Apache: Difference between <Proxy> and ProxyPass

What is the difference between a ProxyPass directive: ProxyPass / http://localhost:8080/ nocanon ProxyPassReverse / http://localhost:8080/ And a <Proxy> directive: <Proxy ...
3
votes
1answer
89 views

a2ensite through shell script

I created a small script to add websites on my server and it looks like this: #!/bin/bash echo "<VirtualHost *:80> ServerAdmin admin@example.com ServerName $1 ServerAlias www.$1 ...
0
votes
0answers
335 views

VirtualHost config in Cpanel - how to ONLY use my custom include file

I'm on Cpanel/WHM. Everytime the system updates or there's an EasyApache thing run, a new VirtualHost entry is created for me in the freshly revised httpd.conf file. Fortunately I have my ...
1
vote
1answer
90 views

Under what scenarios would Apache allow a mismatched HTTP_HOST to pass through?

Someone has managed to pass an undefined HTTP_HOST server variable to my application script, triggering a series of errors. I am quite perturbed but am unable to replicate this behaviour. My httpd ...
0
votes
1answer
53 views

Apache2 virtual hosts order (00- before 000-)

I need to load three virtual hosts in an exact order to make my configuration scheme work as expected. default (Apache default virtualhost) phpmyadmin (a virtualhost that serves phpMyAdmin to all ...
0
votes
1answer
53 views

Fix Apache Virtualhost with Proxy Location

Given the following virtualhost: <VirtualHost *:80> DocumentRoot "/var/www/dashboards/public/dist" Servername local.dashboards ServerAlias local.dashboards Header add ...
1
vote
7answers
5k views

Apache shows it works, what's wrong with my virtual host definition?

I have this apahe config file when I browse, I see "It Works" and I expect to see a list of files since it has the +Indexes option What am I doing wrong? <VirtualHost projects.com:80> ...
0
votes
2answers
71 views

unable to connect from other hosts to vm client

I'm building a vm client from a host using the virtual network 'default': NAT setting in virt-manager kvm which makes a bridge (virbr0) using my host's nic. The vm client receives the default ip of ...
3
votes
5answers
340 views

Apache 1 virtual host definition listening on 2 ips - how?

We have a couple of complex virtual host definitions in our httpd.conf file. What I mean by that is: <VirtualHost .....> .... </VirtualHost> What I mean by complex is that they are ...
-1
votes
1answer
57 views

apache2 virtual site not reachable

i am setting up the bloodhound webapp, and everything worked fine and i wanted to integrate it into the apache2 webserver using the a official guide, but apache is not listening to my specified port ...
1
vote
1answer
62 views

Correct setup of virtual hosts on Apache?

I have a problem figuring out the correct configuration for Apache2 virtual hosts on Centos6 server. I have a clean Centos6 installation with apache2 (httpd) installed, and by default there is ...
0
votes
0answers
297 views

Apache mod_proxy with HTTPS without key material (using SNI)

I would like to have an Apache 2.4 proxy which redirects port 80 and 443 requests to different machines in the local network, depending on the host name. I used mod_proxy and it works fine with port ...
0
votes
1answer
27 views

setting up duplicate http and https locations in apache 2.2 [closed]

I have VirtualHost *:80 tag with many Locations with authentication defined in it. Now I just added https. do I need to replicate all of these Locations under VirualHost *:443? is there any easy way ...
1
vote
1answer
1k views

Can't configure PHP error log

I'm running apache2 with php5 on Linux Mint 13 Maya. I have defined a virtual host and these two entries there: ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ...
0
votes
1answer
223 views

VirtualHost Server Not Found

After modifying the httpd.conf to include my virtual host configuration: Include /private/etc/apache2/extra/httpd-vhosts.conf, I added the following to my virtual host configuration file: # # ...
2
votes
1answer
4k views

The Alias directive … will probably never match because it overlaps an earlier Alias

I'm getting this warning from Apache: The Alias directive in /etc/httpd/conf.d/foo.conf at line 10 will probably never match because it overlaps an earlier Alias. However the Alias overlaps on a ...
0
votes
2answers
1k views

upgrading to Apache 2.4: VirtualHost Invalid command 'AssignUserID'

I have many Apache 2.2 Virtual Hosts with same configuration: <VirtualHost *:80> ServerAdmin webmaster@site.com ServerName site.com ServerAlias www.site.com DocumentRoot ...
1
vote
1answer
89 views

Unable to access multiple virtual hosts under tomcat

I work under tomcat, and would like to have several apps to launch under the same tomcat In local, I called to hosts : localhost localhost_test Unfortuentaly, I only can access localhost. If I try ...
0
votes
2answers
279 views

Apache2: not defined domains directing to the same virtual host

I have Apache2 configured in a debian box with virtual hosts. I have several domains pointing to the box's IP address. The domains whose virtual hosts are configured works perfectly. But if I type in ...
0
votes
1answer
58 views

How to change the default timeout configuration file for composer

I've been searching all over the internet and I can't seem to find any help as to where my composer's configuration file is saved to. Basically what I'm trying to do is change the ...
1
vote
1answer
77 views

Bad performace of virtualized Fedora 20

I have a problem with bad performance of Fedora 20 OS running on host which is shared by multiple virtual machines. All actions like typing, opening menu, etc. have 3 seconds or longer delay. It looks ...
0
votes
1answer
84 views

Configuring subdirectory with apache2 and HTTPS

I have a domain my.domain.com that points to a Zend Framework 2 application at /path/to/project/public which has a .htaccess and index.php file which handles all requests. At ...
0
votes
2answers
202 views

Subdomains Always Redirect To Main Domain - Apache2 VirtualHosts & Debain

I want to set up a main site, and a sub-domain for development, using apache2 VirtualHosts. This is what my site.conf virtual host file looks like: <VirtualHost *:80> ServerName ...
0
votes
0answers
203 views

Configure Nginx with multiple lxc containers, virtual hosts and subdomains

I want to use multiple (at least 3) lxc containers running Apache2 on port 80. I want to configure Nginx such that www.mydomain.com serves the content on the host machine while sub1.mydomain.com , ...
11
votes
1answer
15k views

How to set up multiple websites / virtual hosts on MAMP?

How do you configure MAMP to manage/host multiple websites at one time for development?
-1
votes
2answers
64 views

Apache add subdomain

I need to add a subdomain to this server, i added this NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/html ServerName images.login.acorn.lt </VirtualHost> ...
0
votes
1answer
180 views

Apache VirtualHost with SSL Not Found

I setup 3 virtual hosts on port 80. Everything is fine. Now I would setup the SSL version of these virtual hosts. All works except the main DocumentRoot. Listen 80 ServerName www.mydomain.com ...
-1
votes
3answers
1k views

Apache2 alias in virtual host

I have multiple virtual host in one server and plan to has some alias setup in one virtualhost. So I add the Alias /foo/ /path/to/foo/ in virtualhost directive,but it has no effect. Request of ...
0
votes
0answers
29 views

Extracting ServerAlias to another file

I have a virtual host file with a ServerAlias: ServerName mydomain.net ServerAlias myalias.net ServerAlias *.mydomain.net For some reason, we'd like to have the ServerAlias in a different file. I ...
0
votes
2answers
86 views

View/test websites on new server, without changing domain's DNS

I'm pretty sure it's possible, I just don't exactly know how to; but I was wondering how I could view/test my website(s) without changing the DNS? I'm migrating my websites from provider X (server ...
0
votes
0answers
118 views

CenOS 6.5 Apache 2.2 Django Project gives / 403

I have Apache 2.2 running over CentOS 6.5 for first time. I faced no problem with Ubuntu with configurations below, but on CentOS always giving me 403 error. The example.com domain is living under ...
3
votes
2answers
425 views

Mass virtual hosting with Apache 2.4

I would like to use the value set by VirtualDocumentRoot in a RewriteRule. The Apache documentation says: The other thing to determine is the document root (configured with DocumentRoot and ...
0
votes
1answer
145 views

Apache difference between VirtualHost with ip and without

In some apache file (site-enabled) you can see : <VirtualHost 172.20.30.40:80> DocumentRoot /www/example1 ServerName www.example.com </VirtualHost> Another : <VirtualHost ...
0
votes
3answers
600 views

Centos Virtual host loading default page

I have asked a question which was related to this but not same, I have a centos VPS, which has two wordpress websites, one is mbas.co.in and another is onlinemba123.com, now for virtual hosting using ...
0
votes
0answers
172 views

I can't set virtual hosts with nginx 1.6

I'm trying to set further virtual hosts on my nginx server. But only the ones created on nginx 1.2 work and if I try to add other virtual host , it redirects to default configuration where I have the ...
1
vote
1answer
60 views

How to set up SSL for one domain of several virtualhosts

I have an Apache2 server with multiple Virtual Hosts. One of the domains now wants SSL so they can do payment work with Stripe. I have a separate IP for that domain (domain1) than is the main IP for ...
3
votes
2answers
4k views

Jenkins reports reverse proxy setup incorrect with Apache using virtual hosts with SNI

I'm setting up a Jenkins server, to run under Tomcat behind Apache. I'm using virtual hosts with SSL using SNI so I can access it at https://jenkins.example.com, and serve something else on, say, ...
0
votes
1answer
58 views

SIMPLEST way to proxy name-based virtual hosts

Right now I'm doing this with the following Apache directives to map host names to port numbers: NameVirtualHost *:80 <VirtualHost *:80> ServerName local.stardust-game.com ProxyPass / ...
0
votes
1answer
62 views

Dynamic Subdirectory for VirtualDocumentRoot

I'm using a VirtualDocumentRoot setting on my dev system, so I can easily work on multiple projects without updating the VirtualHosts all over the time. That currently looks like that: ...
2
votes
1answer
60 views

Hosting multiple distinct folders for distinct domains

I have a VPS that I've installed a Apache Web Server on. What I want to do is forward my own website domains to that server and host those websites' files inside my Apache Web Server. As far as I ...
0
votes
1answer
184 views

Added New Virtualhost to redirect external domain name loads first virtual host

Configuration: <VirtualHost sub.domain.com:80> NameVirtualHost sub.domain.com:80 ServerName sub.domain.com DocumentRoot ...
0
votes
0answers
117 views

Server Side Includes don't work when I connect to my XAMPP 3.2.1 site via url from VirtualHost entry

Server Side Includes work on my site when I connect to it via ip address: x.x.x.x/mywebsite/index.shtml but not when I use the url of the virtual host entry that I set up for it: ...