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
0answers
6 views

What configurations should be in the main server config vs virtual host config? [on hold]

I've setup my server as follows: The majority of recommended configurations by Apache and H5BP have been placed within the Server Config file while I've designated specific configurations for Header ...
0
votes
1answer
17 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
20 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
9 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
11 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
18 views

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

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
29 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
votes
0answers
18 views

Apache mass dynamic hosting mod_rewrite

I have set up this: mass virtual hosting I am able to access the index.html in each domain. However, some sites use mod_rewrite to handle their own routing for requests like site.com/route. When ...
0
votes
0answers
6 views

Virtual Host Redirects and Packet Flow [migrated]

If I set up a virtual host in nginx, will all packets flow through that PC? Here is what is going on. I have an openwrt NAT router with two devices behind it, a server and a raspberry pi. I want both ...
0
votes
0answers
7 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
76 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
17 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
40 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 ...
1
vote
0answers
19 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
21 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
28 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
51 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
32 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
28 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
44 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
26 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
35 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
42 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
59 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
18 views

How to rewrite short urls for a mediawiki hosted on a virtual host [duplicate]

I have a mediawiki, I just tore down my old ubuntu server and rebuilt it with debian 7 and apache2, and then split my IP into two name-based virtual hosts. Everything works fine... but I need to make ...
0
votes
0answers
47 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
118 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
30 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
46 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
16 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
34 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
20 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
34 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
61 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
25 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
32 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
33 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
18 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
10 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
34 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
79 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
67 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
60 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
51 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
46 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
157 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
51 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
25 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) ...