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)

-1
votes
0answers
9 views

Nginx confuses two virtual hosts on the same server [on hold]

I have two virtual hosts on my nginx server, let's call them www.mypersonalwebsite.com and www.mybusinesswebsite.com. They are both running on port 80 as you would expect. Everything works fine when ...
0
votes
1answer
28 views

Apache VirtualHosts, Several Websites, Same Server

I've been having trouble getting my custom configuration working correctly. Hopefully, you fine folks may be able to help me out! First of all, a quick description of what I'm trying to do. I'm ...
0
votes
0answers
11 views

how to replicate my server environment and directory structure using Vagrant

I am a developer by trade but am not used to configuring VM's and servers, so I apologize if these questions seem rather novice. I have recently started trying to use Vagrant for local development of ...
0
votes
1answer
25 views

Virtual guest: NTP sync with host

Is there any way to get a virtual guest to only query it's current host for NTP? I'm not talking about configuring ntp.conf with the host's IP here either as VLAN's & firewalls may block that ...
0
votes
1answer
41 views

Apache vhosts not working on Ubuntu 14.04 LTS

I'm trying to set up vhosts on ubuntu 14.04 LTS using apache, but it's seemingly not working. Output of apachectl -S AH00558: apache2: Could not reliably determine the server's fully qualified ...
0
votes
1answer
19 views

Moving Zend Framework 2 from apache to nginx

I would like to move site that uses Zend Framework 2 from Apache to Nginx. The problem is that site have 6 modules, and apache handles it by aliases defined in httpd-vhosts.conf, #httpd-vhosts.conf ...
0
votes
1answer
33 views

Apache mod_proxy

Uggh, I'm spewing that I can't figure this out, I'm so frustrated: <VirtualHost *:80> servername domain1.com.au ServerAdmin webmaster@localhost DocumentRoot ...
0
votes
1answer
18 views

Setting up ProxyPass for a Virtualmin virtual server

I am trying to set up my web server so that I can server multiple Ghost.org blogs. I am stuck in one crucial step. To be honest, my knowledge in servers is not so big, so I request your help to do ...
-1
votes
0answers
30 views

Apache not directing to correct VHost

I have setup the following virtual host ServerAdmin user@mysite.com ServerName mysite.com ServerAlias www.mysite.com DocumentRoot /var/www/homepage/public_html ErrorLog ...
2
votes
1answer
37 views

Apache mod_proxy: Multiple virtual hosts disable each other

I have an Ubuntu 12.04 server, which had Redmine already installed on a stand-alone apache (everything under /opt/redmine). I wanted to install an instance of Jenkins on the same system, without ...
1
vote
2answers
42 views

Virtual host local subdomain

I'm having a bit of trouble getting a subdomain activated on my local dev server. The server's name is janemba and I access it by going to http://janemba. I'd like to be able to have domain.janemba, ...
0
votes
1answer
23 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 ...
0
votes
0answers
25 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
50 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
26 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
34 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
1answer
78 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 ...
0
votes
0answers
33 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 ...
3
votes
1answer
44 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
1answer
24 views

Configure sub-domains at different ports with lighttpd

I've one domain example.com and two sub domains of it docs.example.com & bugs.example.com. And I've two applications running at ports 8080 & 8090. How to configure Lighttpd so that, it can ...
1
vote
1answer
36 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
31 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
21 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 ...
0
votes
2answers
23 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 ...
-1
votes
1answer
33 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 ...
0
votes
0answers
30 views

nginx HTTPS virtual hosts valid across all hosts

I have a nginx server that is listening on both port 80 and port 443. Currently, all port 80 traffic (i.e. http://0.0.0.0 and http://my.example.domain) is redirected to https://my.example.domain (as ...
0
votes
0answers
30 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 ...
1
vote
1answer
30 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
1answer
21 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 ...
0
votes
1answer
42 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: # # ...
0
votes
0answers
9 views

Apache - Secured Virtual Host and Default Web Site [duplicate]

On a RHEL 6 system running multiple web sites, I have configured a secured site (the only seured site on that server) accessible using https://abc.xyz.com/ which works fine. A separate virtual host ...
0
votes
2answers
200 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 ...
0
votes
1answer
23 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
52 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 ...
2
votes
1answer
32 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 ...
1
vote
1answer
30 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
1answer
33 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
94 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
67 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 , ...
-1
votes
2answers
36 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
54 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 ...
0
votes
0answers
27 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
43 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
57 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 ...
0
votes
1answer
75 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
0answers
81 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 ...
3
votes
2answers
174 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
42 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 / ...
1
vote
1answer
51 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 ...
0
votes
1answer
29 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: ...