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 (5)

8
votes
1answer
286 views

How to automate zabbix web scenarios for vhosts?

I'm new to Zabbix and enterprise monitoring. I've just finished installing Zabbix 2.4. I'm trying to monitor the state of all our vhosts dislocated on different servers. Until now the only solution ...
4
votes
1answer
152 views

apache fails to restart…happened out of the blue :/

Tried navigating to my server today and noticed that NONE of my hosted websites are loading...even if I enter the ip and try to hit the default page I get nothing. I hadn't touched the server since it ...
3
votes
1answer
2k views

Require ldap-group on apache 2 vhost fails when trying to log in

I have a vhost which I'm trying to get to work with LDAP-authentication. My configuration looks like this: <VirtualHost 0.0.0.0:80> DocumentRoot "/var/www/root/" ServerName ...
2
votes
1answer
26 views

Can Apache Access Logs be kept separated & also combined as well too?

My question may be a bit confusing, and sorry for that. Here is what i need: Well, i have (let's say) 3 Websites hosted on one Apache (which are defined inside each VirtualHost settings. Then i ...
2
votes
1answer
1k views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
2
votes
1answer
244 views

Apache: Serving same file on multiple vhosts using regex

I have various virtual hosts (vhosts) setup on an Apache 2.2 server such as: examplea.domain exampleb.domain testsitea.domain testsiteb.domain testsite.domain othersitea.domain On virtual hosts ...
2
votes
1answer
419 views

Moodle on Apache: two virtual hosts with single login

I have a moodle installation on centOS with two folders (virtual hosts)- /2012 and /2011. When browsing to "http://my.moodle/2012" or "http://my.moodle/2011" and authenticating (to either one), how ...
2
votes
1answer
114 views

Apache issue with VirtualHosts

I am setting up a small website in-place on the production server. While we are finalizing all the settings for the final domain we've located it on dev.domain.com, so that our visitors don't see a ...
2
votes
1answer
113 views

What is the best setup of mod_mono with more virtual hosts?

I have VPS on debian, where I want to host at least 20 virtual hosts running mono application. On PHP I was using mpm_itk to run each vhost under its own user (I thing it is good for security and ...
2
votes
1answer
518 views

CentOS 6 Apache Virtual Host Config Help for Development Server

I have setup a LAMP server with CentOS. It will be used as a development server within our domain. It is our first Linux server and would like to actually put one into production in the future. The ...
2
votes
1answer
184 views

Both virtualhosts pointing to same application. Apache, passenger, rails 3

A couple of months ago I set up a rails app using apache, passenger and virtualhost and I (eventually) got everything working fine. Now I am trying host another application on the same box. I've added ...
1
vote
1answer
50 views

Two different SSL Sites with same name possible in Apache?

I just upgraded from debian 7 to debian 8 (apache 2.4) box called debian.domain.com I have Request Tracker, a helpdesk software, and i want to run it from https://helpdesk.domain.com (i have a valid ...
1
vote
1answer
55 views

Proxy from another domain to a virtualhost

The first two vhosts works as expected. The second one proxy a Odoo server. I would like to make another proxy from my secondary domain to my Odoo server. However, Odoo must receive the subdomain ...
1
vote
1answer
58 views

Apache SSL virtual hosts sharing same DocumentRoot

I have a web server with two domains pointing to the same document root. I have separate SSL certs for the two domains. I want (almost) everything that comes to the site(s) to run under SSL. All works,...
1
vote
1answer
129 views

nginx virtual hosts not working after enabling IPv6

I've just enabled IPv6 on my nginx 1.8.0 webserver based on Debian Jessie. To do this I've edited my Virtual Host-Config: server { listen 80; listen [2001:1608:10:160:34::2]:80; ...
1
vote
1answer
114 views

Dreamhost Cloud Computing: Ubuntu 14.04 LTS / Apache 2 listen multiple port

I'm configuring an Ubuntu 14.04 LTS within your DreamCompute service. I have installed apache2 and currently running successfully a website in port 80. What I'm struggling now is to configure ...
1
vote
1answer
1k views

Apache VirtualHost error: Invalid host name

It used to be pretty simple for me to set up a VirtualHost to test a new php webapp, for this http.conf: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /opt/webgrind/www ...
1
vote
1answer
308 views

Nginx https vhost capering all requests

I am trying to setup a gitlab instance along an own cloud instance on the same server. Both work fine over http, and both work fine over https if one one host is enabled. The weird thing is that the ...
1
vote
1answer
277 views

Apache2 virtual host redirection issue on Chrome

I am having an extremely bizarre issue that seems only present on Chrome, IE and Firefox are fine. I have 2 website being served by 1 IP address, I have 2 identical files in sites-available named ...
1
vote
1answer
52 views

Varnish to Vsites on Apache servers

Can anyone advise of a VCL conf that redirects (inside LAN & LAN DNS) to get to multiple named hosts? i.e. http://x.ourdomain.com = IP of Varnish Server = redirects to LAN host (i.e. 10.0.5.1) ...
1
vote
1answer
296 views

Access Apache VirtualHost from localhost

I have a DirectAdmin setup with Apache on a server which is behind NAT. Everything is working correctly when accessing a VirtualHost from outside the machine (either through the Internet and the ...
1
vote
1answer
212 views

Apache Auth directive cascade to alias directories

I have a reasonably lengthy block of authorization config directives within an Apache <Directory> context in a virtual host configuration file. It has LDAP credentials and a complex filter that ...
1
vote
1answer
2k views

How to specify ErrorDocument for a VirtualHost in Apache2?

I have an Apache 2 server and it have several vhosts with similar definition: <VirtualHost *:80> DocumentRoot /var/www/html/host1/ ServerName host1.loc <Directory /var/www/html/...
1
vote
1answer
1k views

Apache2 / debian wheezy serving only default virtual host

I have seen all other questions around this topic, but none of the answers have worked. Situation: VPS on 1 IP, debian wheezy 7 running with apache2. Even simple virtualhost will not work, as named ...
1
vote
1answer
286 views

nginx as proxy multiple vhosts

Runing Windows Server 2008 R2 nginx on port 8080 Apache on port 80 Apache is hosting 5 websites configured within the directive. I'm trying to configure nginx as proxy in front of Apache, (I'll ...
1
vote
1answer
264 views

OpenSSL response 404 issue on centOS 6

I followed this tutorial (though it's for 5.2, I figured I'd be alright). The changes I had to make that seemed to have worked: Rename ca.csr to ca.cslr (that's the one the command generated) List ...
1
vote
1answer
74 views

Refer to DocumentRoot directive value

Is there an option to refer DocumentRoot assigned value as a variable in the virtualhost declarations that come after? For example: <VirtualHost 127.0.0.1:80> DocumentRoot /var/www/html/...
1
vote
1answer
142 views

Syntax Error when setting up Domain Alias

I'm attempting to set up a domain alias via Pre VirtualHost Include and I'm recieving the following error: Error: An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/...
1
vote
1answer
105 views

Configure static IP with port number which will point to multiple projects on different ports

I am developing a project in LAM* and using the Symfony framework. I have one static IP like 99.99.99.99:8000 which points on my Linux server machine. This static IP already has port number of 8000. ...
1
vote
1answer
845 views

Virtual Host forces to download files

I have been struggling with this for more than 5 hours now, and I can't seem to find the fix to my problem. Basically, I set up virtual host on my Fedora Core server (on custom port 55555). Any time I ...
1
vote
1answer
129 views

IIS worker process and host headers

I am building a multi tenancy site in ASP.net. It will has three host headers. My understanding is that when a request comes to www.siteA.com, ISS will spin up a worker process for the for the ...
1
vote
1answer
226 views

Apache Cache with multiple CacheRoots

I configured Apache with a CacheRoot directory for each of my domains / virtual hosts: <VirtualHost> ServerName domain1.tld ... CacheRoot /var/www/vhosts/domain1.tld/httpdocs/cache ... </...
1
vote
1answer
681 views

Apache2 name based virtual host always redirect 301

I've got a server (runnging Debian Squeeze) with Apache 2.2, there are 4 site running there. I'm using namebased virtulhosts because I've got a single IP. Initial configuration has been made with ...
1
vote
1answer
113 views

tomcat behind apache

i am trying to use the mod_proxy_ajp to forward all the request from tocat.example.com to example.com:8080 here is what the tomcat server.xml looks like: <Connector port="8009" protocol="AJP/1.3" ...
0
votes
0answers
791 views

How to redirect a domain to a specific IP and port using nginx?

I have read several similar questions to this one in this forum, but not exactly the same, I tried every solution in very different ways but I am not able to manage this. I was given some data about ...
0
votes
0answers
100 views

Replicate 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
0answers
1k 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
0answers
553 views

Apache2 vhost config not working (Debian 7)

My Apache 2.4.9 vhost configuration is not working any more on Debian 7. I didn't make any changes and it seems to have broken. Going to my site shows the following in /var/log/apache2/error.log ...
0
votes
0answers
42 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
0answers
170 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
0answers
290 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 ...
0
votes
0answers
1k views

Apache 2.4 Virtualhost Blank Screen

I've recently moved a PHP project I'm working on to a VM running Apache 2.4.9 from a physical box running Apache 2.2.11. I have setup a VirtualHost for the project similar to what I had on the 2.2 box....
0
votes
0answers
89 views

Virtual host Alias not routing properly

I apologize if this question has been asked many times in the past. I am not 100% sure of the exact cause of my issue and am out of google magic right now. Basically I have a virtual host file setup ...
0
votes
0answers
167 views

Running MS SQL Server DB for Ubuntu PHP site

I'm going to be developing a php site (actually more of a application), but the standards and restriction of what I'm building make MS SQL Server the most appropriate DB solution (will also be running ...
0
votes
0answers
125 views

Apache2 Serves Old Content After Symlink Change

When we deploy we create a timestamped folder in a versions folder. After it's done cloning from git we unlink the symlink, and create a new one to the new versioned folder. We reload apache (not a ...
0
votes
0answers
464 views

How to host website over public ip in centos 6 server

I don't have router so i built the system as a router in CentOS 6.4 with the help of IPtables. I have a server which is connected to the Local LAN. suppose 192.168.1.1 Then i forwarded the public ip ...
0
votes
0answers
352 views

How Do I Enable My Ubuntu Server To Host Various SSL-Enabled Websites?

Actually, I Have looked around for a few hours now, but I can't get this to work. The main problem I'm having is that only one out of two sites works. I have my website which will mostly be used for ...
0
votes
0answers
719 views

Why standard, virtual host Drupal 7 config causes 403 (Forbidden) in Apache2?

Virtual host declaration causing the problem (source): <VirtualHost *:80> ServerAdmin admin@d7 DocumentRoot /vagrant/d7 ServerName www.d7.local ServerAlias d7.local RewriteEngine On ...
0
votes
0answers
348 views

Wordpress serving PHP but not CSS or JS

I'm trying to set up an Amazon EC2 instance to run a Django app and a WP instance side by side, differing only by the incoming URL. Initially, accessing the site via mysite.com/wordpress worked, but ...
-1
votes
0answers
25 views

Apache Virtual Host HTTPS Site Not Reachable

Firstly, my HTTPS site setup using Virtual Host Redirect is working fine. But, after i try to add restrictive SFTP user by target user home directory into web directory of my HTTPS site with the ...