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
44 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: # # ...
1
vote
1answer
552 views

How to configure ProFTPD to provide a different anonymous FTP for each domain?

I'm trying to configure ProFTPD to match the following situation: Multiple domains on a single IP address. Each domain should have it's own anonymous FTP directory. Everything runs on Ubuntu ...
2
votes
1answer
3k 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
205 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
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
2answers
273 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
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
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 ...
0
votes
1answer
34 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 ...
16
votes
6answers
7k views

Resolving to virtual host very slow on Mac OS X Lion

Since upgrading to Mac OS X Lion (from Snow Leopard), I have noticed that resolving to a virtual host is very slow (between about 3 seconds). I have found a number of tips (e.g., not using the .local ...
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
68 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 , ...
10
votes
1answer
14k 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
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 ...
-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
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
44 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
59 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
178 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
76 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
546 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
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 ...
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 ...
2
votes
2answers
3k 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
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 / ...
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: ...
2
votes
1answer
56 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
68 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
44 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
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
103 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 ...
4
votes
3answers
1k views

Multiple SSL vhosts using wildcard certificate in nginx

I have two hostnames sharing the same domain name which I want to serve over HTTPs. I've got a wildcard-SSL certificate and created two vhost configs: Host A listen 127.0.0.1:443 ssl; ...
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
127 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
69 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 ...
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) ...
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
0answers
242 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
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
1answer
75 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 ...