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
1k views

Apache2 Default overrides virtual host

I have an Ubuntu 12.10 LTS server running apache2 with a simple wordpress install. I created the virtual host in /etc/apache2/sites-available and used a2ensite to enable it. All was working fine for ...
0
votes
1answer
462 views

Using Puppet with complex Nginx VirtualHosts

I'm trying to use Puppet and a Nginx plugin to manage a virtual host config file. I have everything working, but now that I need to add some rewrite rules I'm running into issues. I know I can use ...
1
vote
3answers
1k views

Apache virtual host - one site, two IP addresses [closed]

Is it possible to configure an Apache (v2.x, running under Plesk 10.4.4) virtual host to listen to two IP addresses at once? We are moving a site from one IP on the server to a different IP (so that ...
0
votes
2answers
152 views

Microservers VS Virtual Servers

I am reading this articles in regard to microservers : 10 things you should know about microserver Microservers : What you need to know It seems to conclude that micoservers are best tailored ...
0
votes
1answer
67 views

Using Apache to make a virtual host with the same domain name?

I'm sure there's a name for this and I'm probably just searching wrong. Anyways, is it possible to set up virtual hosts on the same domain name by using information after the '/' For example host1 ...
0
votes
0answers
133 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
1answer
40 views

Tomcat 7.0.42 Manager Weird behavior

Good morning folks! I'm playing with my brand new tomcat installation today, and everything run pretty smoothly except that I got a weird reaction using the manager with virtualhosts. The problem ...
1
vote
2answers
54 views

Why is a domain I have a VirtualHost for pulling the default domain's content?

On a server where the default host is http://JonathansCorner.com, I am trying to set a VirtualHost for http://media.pragmatometer.com. However, neither of the registered domains in Apache2's ...
0
votes
1answer
497 views

Why am I getting a 403 in attempting to access view-source:https://ccachicago.pragmatometer.com/admin/static/css/base.css?

I've been trying by hook or by crook to get /admin/static/ served up in an Apache SSL VirtualHost, preferably by Apache (which is forwarding SSL traffic to a Django Gunicorn instance), or barring ...
0
votes
2answers
153 views

Wrong application loads on port 443

I have a server with two web application that configured as follow: app1: www.domain1.com has https version app2: www.domain1.com has not https version This is my VirtualHost config for ...
1
vote
1answer
174 views

VirtualDocumentRoot Setup For Local Development [duplicate]

I'm trying to learn about setting up httpd.conf and httpd-vhosts.conf files. I would like to have a local setup, using Wampserver on Windows 7, so that I can add a new project just by adding a new ...
2
votes
2answers
1k views

How do I “test” name-based virtual hosting?

Our website mysite.com is going to be hosted at a server with virtual hosting (name-based) at 10.20.30.40. However, the DNS records are currently pointing to 66.77.88.99. I want to keep those DNS ...
0
votes
2answers
208 views

getting started with apache mod_rewrite on a virtual host [duplicate]

hey SO I am attempting to use apache's mod_rewrite module to do some basic rewrting of url on my website so they become a little more seo friendly basically I have a virtual host file that look ...
6
votes
2answers
1k views

Apache not finding folder on File System; Appending “\xe2\x80\x9d” to end of File Paths

I have three Virtual Hosts running in apache2 on my personal Macintosh running OS X Mavericks and I have ran into a knot of confusion. They are configured in my httpd-vhosts.conf file as follows: ...
1
vote
0answers
61 views

set document root for external calls

I'm using mod_userdir to set my document root to /home/user/server/public_html/ I also setup a virtual host that will redirect for the ServerName domain.com to ...
0
votes
0answers
70 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
1answer
877 views

Apache Serving Wrong Document Root

I have installed SSL on a subdomain of my site. Everything works perfectly, except this strange behavior. If I point my browser at the following locations, these document roots are served: ...
2
votes
2answers
430 views

How to reject requests with apache that don't match list of vhosts

I'm getting a ton of requests to my web application for ips without a host and hosts that don't matching anything I usually serve up. I found a stackoverflow question related to this but I'm not sure ...
6
votes
2answers
4k views

difference between _default_:* and *:* in VirtualHost Context

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. <VirtualHost _default_:*> #... ServerName host.example.com #... </VirtualHost> ...
0
votes
1answer
1k views

Is there a syntax error or other error in this Apache site configuration?

I have a Django Gunicorn server running on an Ubuntu VPS at 0.0.0.0:8000, and while there are some problems with it, it appears to be accepting localhost connections. I have the following in my ...
1
vote
2answers
3k views

Can't get PHP to work on Apache VirtualHosting environment

Trying to setup an Apache VirtualHosting environment with PHP in a freshly created CentOS node under DigitalOcean cloud server. The trouble is, although Virtual hosting is working per se, PHP isn't. ...
-1
votes
1answer
66 views

Cannot access virtualhost via servername but can with alias

I can access site perfectly via alias, but not servername: <virtualhost *:80> ServerAdmin xx@gmail.com ServerName xx.com ServerAlias www.xx.com #DirectoryIndex ...
0
votes
0answers
322 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 ...
-2
votes
1answer
46 views

Apache two sites one ip

I made this many times but now it wont work. I have configure apache to work with different ports, and work with different ip and this same thing also i have made work ... iv configured bind as my ...
0
votes
3answers
134 views

Only accept naked domain request, not subdomains

I can't seem to explain Apache to accept requests on the naked domain but to ignore anything coming from a subdomain. I have the feeling this should be easy but everything I find is related to ...
2
votes
0answers
90 views

TTFB different between 2 identical virtual hosts on same machine

After almost 3 years of finding every answer on either StackOverflow or ServerFault, I'm finally stuck on one. I recently migrated our server from dedicated to VPS, and the problem now is that we have ...
2
votes
4answers
657 views

Apache2 VirtualHost IfPort?

I'd like to make a virtual host like this: <VirtualHost *:80 *:443> <IfPort 443> SSLEngine On ... </IfPort> ... </VirtualHost> So, if the host ...
0
votes
3answers
78 views

One VirtualHost for certain URLs, another VirtualHost for all other URLs in Apache

Is it possible to configure Apache to have different virtual hosts listening on the same IP address, same port, such that certain paths (not the full domain, just the local path) will direct to one ...
3
votes
3answers
2k views

Apache2 virtual host reverse proxy rewrite asset links

I have a web application running on port 8080 on my server: myip:8080/app I have the following config in my httpd.conf <VirtualHost *:80> ServerName subdomain.mydomain.com ServerAlias ...
1
vote
1answer
80 views

Apache: point VirtualHost dynamic domains and subdomains to different folders

Currently I have 2 VirtualHosts: <VirtualHost *:80> ServerName *.*.comp1.office1.lan VirtualDocumentRoot /var/www/%-4/%-5/ UseCanonicalName Off <Directory /var/www/> Options Indexes ...
0
votes
1answer
1k views

How to configure squid to act as a virtual host for docker images

I have a server which is running a bunch of docker images (which basically just host a bunch of websites) they all have different domain names all pointing to the server's IP (lets say the server IP ...
3
votes
1answer
2k views

How to avoid Error 403 Forbidden : Apache virtual host configuration issue

I am quite a newbie to the Apache Server (2.0, I know it is a bit too old, however my workplace demands me to learn it as it is the version we are using)and now trying to get Apache work with Jboss ...
2
votes
1answer
50 views

vServer Debian Linux virtual host issue

I am having an issue with my virtual host setup for days. My server is a vserver with debain linux and I am trying to add two new domains which will be redirected to their own subfolders. Domain1.com ...
1
vote
3answers
91 views

How to share Apache2 virtual host configuration between two linux servers?

What is the best option to share configuration directives between Apache2 servers. This is required in order to employ stable load balancing. The most important directives are those that define the ...
0
votes
1answer
339 views

Configuring nginx virtual hosts

I'm having trouble configuring nginx virtual hosts on a Debian GNU/Linux 7 (wheezy) machine. All I get is a 500 Internal Server Error. Here is an example of my vhost_autogen.conf file: server { ...
3
votes
1answer
449 views

Split the same virtualhost configuration across multiple files

I have multiple django applications on my server that run each within their own virtualhosts, bound to different ports. (I do this so as to isolate each WSGIProcessGroup). Now I would like to proxy ...
1
vote
0answers
98 views

Apache ProxyPass to custom port

The problem is following: I have an index.html file that is located under /www/site/ and I want to be able to serve all appropriate content from that folder under custom port lets say :8085. It is ...
1
vote
2answers
836 views

nginx - owncloud under location

I want to put owncloud under a location in my default virtual host. I also want to redirect to https. I have got it working with phpmyadmin but i can't with owncloud. This is the suggested ...
1
vote
2answers
67 views

Make NginX serve different pages depending on the IPv4 encoding base

You can access google on 186.215.155.54 , 0xBAD79B36 or 3134692150 (remember to put http:// before if you want to try). How is the base conversion handled by the browser? Is there any way for NginX ...
1
vote
1answer
943 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 ...
1
vote
2answers
41 views

Apache Virtual Host time based

Is it possible to make a virtual host available based on time? Can the configuration be done within the httpd.conf file directly without the use of external commands?
-1
votes
1answer
90 views

Apache: Serve one directory in two virtualhosts

I try share a WordPress plugin directory between two sites. The problem is that the scripts are working but not the URLS. They are output in a strage way that the path is in there when it should not. ...
0
votes
1answer
206 views

Apache2 Virtual Host redirect except on special path

Assume we have 2 domains. www.my-domain.com www.mydomain.com As Standard, we have a redirection from .mydomain.com/ to .my-domain.com/ via (mydomain.conf) <Virtualhost *:80> ServerName ...
-1
votes
1answer
60 views

How to differentiate virtualhosts in Apache's log files?

I wanted to make a simple access statistic based on apache's access log, but I found out that I can't tell vhosts in the log file apart. I don't really want to make separate log files for each vhost, ...
0
votes
1answer
41 views

Ubuntu 12.04 virtual host domain enabled, but does not get loaded

This is my first attempt at setting up virtual hosts in Apache. I am trying to set up the subdomain test.mysite.com for mysite.com. My VPS had Apache already installed on it. In /var/wwwthere was an ...
0
votes
1answer
442 views

Apache virtual host serves default vhost for port 443 despite server name match for port 80

I have two servers that are clones of each other save for a few minor configuration changes. I am getting some unexpected behaviour when trying to visit their monitoring.*.com sub domains. Running ...
0
votes
1answer
79 views

Centos6 Alternate Apache/Virtual Host Config Alternate Port

I have an Apache2 + Virtual Host config that runs perfectly fine on port 80, but I'm trying to get the same setup to run on port 9000 instead. I went into my httpd.conf and changed the Listen line to ...
0
votes
1answer
77 views

Ubuntu 12.10 virtualhost conflict

I have 2 sites on my server. One I access via my IP, x.x.x.x/site1. The other is a registered domain name, www.mysite.com. Initially, I had only my /etc/apache/sites-available/default file available ...
0
votes
1answer
898 views

What is wrong with my apache2 server?

I edited the file /etc/apache2/sites-enabled/000-default and then tried to restart my apache server and this error came up: Syntax error on line 20 of /etc/apache2/sites-enabled/000-default.save: ...
1
vote
1answer
802 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 ...