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
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: ...
0
votes
1answer
66 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
43 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: ...
0
votes
2answers
39 views

Apache VirtualHosts does not work [duplicate]

My site has one IP. They set for me tww records into DNS servers: www.mydomain.com --> admin.mydomain.com --> My apache httpd.conf reads as follows: ... ServerName www.mydomain.com:80 ...
0
votes
0answers
100 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 ...
0
votes
0answers
35 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
1answer
37 views

Apache2 virtualhost configuration trouble [duplicate]

This is my situation: I have Redmine and Gitlab in my server which does not have a domain associated, because I will use the server IP address. I want to configure two virtualhosts in apache2 with ...
0
votes
0answers
11 views

Conditional tags in httpd.conf file with <virtualhosts>? [duplicate]

I need to make redirection with : If |domain| != example.com then ServerAlias |domain| Redirect permanent / http://www.getexample.com How can I do this with virtual host file(httpd.conf)? Apache ...
0
votes
1answer
40 views

Apache Server - Subdirectory on different server [closed]

You have 2 different servers with different IP Addresses. Both servers are Apache based. Server A: already hosts a website (http://example.com) Server B: would host a WordPress website to be in a ...
1
vote
0answers
19 views

Make nginx config like apache2 virtualhosts

I have web server with apache2 with many subdomains on it like, domain.com, abc.domain.com, def.domain.com etc. etc. Now I got a new nginx server and want to set it up like apache2, so to test I ...
0
votes
0answers
6 views

SSL and regular VHost on the same server [duplicate]

I have a server running Apache 2.4 on which run several virtual hosts. The problem I noticed is that if I try to access let's say https://example.com that have no SSL setuped, apache will ...
0
votes
0answers
11 views

Sftp virtualhosting based on the SNI server name?

I am thinking on the possibility of the virtualhosting of sftp based on the server name, which was given by the client with SNI. Is it possible? Does any similar already exist there?
1
vote
1answer
41 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
2answers
82 views

Apache resolves all URLs to default

I am using Apache 2.2 on a Debian-based distro. For some reason, all URLs are directed to the default index. No error or anything. That means: example.domain.com goes to domain.com. "example" can be ...
0
votes
1answer
126 views

Multiple python versions under apache+mod_wsgi

I have several virtual hosts configured under the same apache instance on redhat: apache-2.2.15 mod_wsgi-3.5 compiled with default system python-2.6 For every virtual host WSGIScriptAlias setting ...
-2
votes
2answers
67 views

How to setup dns to redirect app.example.com to another ip? [closed]

I have a site www.example.com running on a hosting company. Now I want to create a separate web app on my VPS and let it accessible via app.example.com How can I set the DNS to redirect ...
0
votes
2answers
63 views

Can I direct users to a virtual host on a server by the server's main IP address when their DNS fails to resolve the hostname?

Problem: Some individuals' ISPs occasionally can't resolve one of my virtual hosts on a LAMP installation. Ubuntu 10.04 LTS, Apache 2. I'm looking for hack that can do it by IP. Background: On this ...
0
votes
2answers
53 views

Apache redirect seems to ignore ServerName

I have a couple virtual host files. The first one redirects all traffic for http://www.mysite.com to the https version: <VirtualHost *:80> ServerName www.mysite.com Redirect permanent / ...
0
votes
0answers
237 views

SSL Connection Error

I have purchased a comodo ssl cert and have submitted the Certificate Signing Request (CSR) generated by my server to the ssl management site. With the 3 files it returned me with, - ...
0
votes
1answer
73 views

“Can't Connect to Server” from 2nd virtual host on VPS

I'm using Debian 7 Wheezy and Apache 2.2.22, and I'm setting up Virtual Hosts for a number of websites on my VPS. I've successfully configured the VirtualHost directives for one of the sites, but the ...
1
vote
1answer
27 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
0answers
15 views

Limit connection per domain source [duplicate]

I would like to limit my http request for only one virtualhost on apache, is it possible to do this via iptables for only one virtualhost ? I prefer to do not use apache if it's possible for better ...
1
vote
1answer
65 views

403 Forbidden in root

I'm setting up a webserver with virtual hosts, and I'm having a hard time getting around this 403 Forbidden error. The error claims something is pointing to root /, but the directives are set for any ...
0
votes
1answer
55 views

VirtualHost Redirect should work with new RewriteBase

Inside the VirtualHost I got this redirect: RewriteBase / RewriteCond %{REQUEST_URI} wp-content/uploads/([^.]+\.(jpe?g|gif|bmp|png))$ RewriteRule (.*) http://example.org/$1 [R=301,L,NC] So the full ...
1
vote
1answer
87 views

Location directive not working

For my NGINX server I have a virtual server set up just to dish out static content. At the moment I'm trying to set it up so that images have an expiry date. However, when I create a location ...
1
vote
1answer
87 views

Creating multiple Virtual Hosts in Apache the right way (macosx)

I got a strange problem trying to define multiple virtual hosts in Apache. This is my code for httpd.conf file: <VirtualHost *:8888> ServerName site1.local DocumentRoot ...
0
votes
1answer
77 views

How can I persuade a wordpress bitnami module to operate on a subdomain?

So I have bitnami's LAMP stack running, and I have a wordpress module installed within it. I want my wordpress installation to live at blog.example.com, and any wordpress links to remain under ...
0
votes
1answer
26 views

Under what circumstances would two identical subdomains on the same server behave differently?

I have two subdomains in the same parent folder on the same disk on the same physical server, operating under the same instance of Apache2 and all its mods. How do I know the folders are identical? ...
0
votes
1answer
34 views

RewriteRule Not Rewriting URL properly [duplicate]

I have the following virtual host file: <IfModule !wsgi_module> LoadModule wsgi_module modules/mod_wsgi.so WSGISocketPrefix run/wsgi </IfModule> <VirtualHost *:80> ...
0
votes
0answers
143 views

CakePHP Rewrite Loop using Subdomain Wildcards

I am using CakePHP 2.4 and usually setup a single virtualhost file to point to dev.myapp.com and everything works fine. dev.myapp.com goes to the home page, and dev.myapp.com/users goes to the main ...
1
vote
0answers
35 views

Configure Bonjour for a custom vhost on Apache on OS X 10.9

How to broadcast all my vhost ? This has been answered for Snow Leopard, sadly the configurations files pointed in this thread are not there anymore in Maverick.
2
votes
1answer
69 views

Why this VirtualDocumentRoot setup returns 403 Access Forbidden?

I have the setup my httpd-vhosts.conf with the following derectives: UseCanonicalName Off LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon CustomLog logs/access_log vcommon <VirtualHost ...
0
votes
0answers
102 views

500,403,404 Errors with Apache2 and ISPconfig 3

I currently have an issue with Apache2 on a Centos 6.4 base with ISPconfig3. Apache by default serves out the directory, /var/www with the FQDN www.example.com and example.com. However, I have a ...
0
votes
1answer
25 views

Is VirtualHost Entry Required for CNAME Pointing to Same DocumentRoot?

www.example.com. 1800 IN CNAME example.com. other.example.com. 1800 IN CNAME example.com. Which method is correct in Apache when all entries point to the exact same ...
0
votes
1answer
68 views

Chrome and IE Virtual hosts subdomains pointing to wrong directory

Firefox brings up the correct pages, but IE and Chrome both bring up the default page. I am running Apache/2.2.15 (Unix) on CentOS 6.5 I have a virtual.conf in the conf.d folder with the following: ...
0
votes
0answers
102 views

403 Forbidden error on apache 2.2.2 under ElementaryOS Luna

I've installed latest lampp in my ElementaryOS install. All went ok until I begun getting access problems in some files, so I went through: created a new group www and added my user to it, then ...
0
votes
1answer
109 views

Apache ProxyPass in Dynamic Mass Virtual Hosting

In order to make my life easier with new vhosts popping up I set up my httpd.conf to use this: <IfModule mod_vhost_alias.c> <VirtualHost *:80> RewriteEngine On RewriteCond ...
0
votes
0answers
32 views

Run script when mod_cband virtualhost limit exceeded

I'm running a VPS and using it to hosts my clients' websites with virtualhosts. I have mod_cband set up to limit bandwidth per month (I think) but it'd be good if there was a way to run a private ...
2
votes
2answers
104 views

How do I give label to vSwitches on VMWare?

I've searched extensively trying to name the vSwitches that I create, but all I can name them are "vSwitchX" where x= some number. How do I give these switches names? I'm using the Web Client. ...
1
vote
2answers
76 views

Apache restrict /var/www subdirectories access

I got 2 virtualhosts that are looking at /var/www/site1 (ServerName site1) and /var/www/site2 (ServerName site2). I want to make my sites unavailable by http://1.2.3.4/site1 or http://1.2.3.4/site2 by ...
-2
votes
2answers
52 views

Virtualhosts - making available only certain websites without root folder [closed]

I have a DNS name as somename.dlinkddns.com Also I've LAMP installed on my development machine. I want to show my websites for client. It's possible to do it using virtual hosts. e.g. - ...
-5
votes
1answer
59 views

Host a website on your virtual pc and access it on the internet [closed]

My friend and I are talking about hosting a website that is in development, We have a single computer(windows7) and would like to host a website virtually on this computer. Scenario is: Main ...
-4
votes
2answers
82 views

how can i access a directory from network in apache using httpd.conf [closed]

I want apache to access a location which is in network that means instead of specifying a DocumentRoot from withing the server(mine is centos) i want the apache to access a directory which is on ...
0
votes
1answer
62 views

Two apps on Apache server with URI

I need to install a server with Apache 2.2 on Linux and I need to do two VirtualHosts differentiated by URI. But with only one domain name and one ip address. And I can't use Alias. I tried ...
0
votes
1answer
133 views

Configure Apache To Return Nothing For Default 443 VHost

I have several vhosts on port 443 and each of these vhosts have the ServerName config option set and also the correct SSLCertificateFile and SSLCertificateKeyFile values as well which vary depending ...
1
vote
1answer
96 views

Sub-domain setup doesn't work Apache 2.2.26 on Amazon EC2

I tried setting up a sub-domain for my site example.com. It doesn't seem to resolve to the proper directory. Below is my setup Main domain: example.com Subdomain: subdomain.example.com DNS records: ...
0
votes
3answers
692 views

Apache 2.4 - 403 HTTP status code

I'm getting a 403 error message with Apache, in Debian Testing. Apache version: # aptitude show apache2 | grep -i version Version: 2.4.9-1 # ls -la /home/ total 28 drwxr-xr-x 4 root root ...
2
votes
1answer
214 views

How to trace high CPU Apache process to particular virtualhost

Looking at the output of top I notice that intermittently there are one or two Apache processes consuming a high amount of CPU - anywhere between 50% - 90% The spikes in CPU usage come and go quite ...
0
votes
3answers
67 views

one IP: virtual machines for virtual hosts? [closed]

I currently have one hardware linux server with one IP address that is running three websites (virtualhosts via apache). I would like to push each website into its own virtual machine in order to ...
1
vote
1answer
38 views

Virtual server isn't working if I use www instead of just the domain

I have two domains. Domain1 uses IP1, and Domain2 uses IP2, however they both point at the same VPS. I got it working if I go to domain1.com, however going to www.domain1.com gets stuck on the ...