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
19 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
11 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
38 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
55 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
94 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 ...
0
votes
0answers
34 views

VirtualDocumentRoot Setup For Local Development

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
116 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
46 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 ...
2
votes
1answer
67 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
21 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
26 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
30 views

Connecting to Webserver(Nginx) from within GuestOS (VMware Player+ NAT) inside Debian from outside

I currently have a Server (Debian 7.3 , Kernel 3.2.0-4-amd64) with VMware Player 6 installed which is hosting a guest OS(Ubuntu Server) with Nginx running on it. I want the NGINX to serve webcontent ...
0
votes
0answers
60 views

Nginx Virtualhost; Can't Add Simple Rewrite Rule

I've come up with this pretty handy Nginx virtualhost file for a PHP Codeigniter site. It works as-is, but I'm trying to do additional rewrites and I'm not having any luck. server { listen 80; ...
0
votes
1answer
40 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
51 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 ...
1
vote
2answers
25 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
56 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
0answers
95 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
35 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
48 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
32 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
69 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
30 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 ...
1
vote
4answers
94 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
32 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 ...
1
vote
3answers
172 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 ...
0
votes
0answers
19 views

How to secure certain files on a vmware based DAAS provider? [duplicate]

Most Desktop As A Service providers store their virtual hard drives in a way that allows them to access their contents. Of course choosing a provider who offers a 'no-knowledge of server' option ...
1
vote
1answer
38 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 ...
-1
votes
1answer
147 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 ...
2
votes
1answer
160 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
33 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
38 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
70 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 { ...
2
votes
1answer
35 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
43 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 ...
0
votes
2answers
93 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
44 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
67 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
40 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
52 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
34 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 ...
-2
votes
1answer
42 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
29 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
95 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
25 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
36 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
115 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
87 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
2answers
506 views

Subdomains returning HTTP 403 after updating Apache from 2.2 to 2.4

After an operating system upgrade which involved updating Apache from 2.2 to 2.4, I'm now getting 403s trying to access http://files.fierydragonlord.com/ and http://status.fierydragonlord.com/. ...
0
votes
1answer
42 views

Virtual host - SVN - disable direct access from server ip

I have a debian with apache2 on board. Only port 443 is opened and I'm exposing a SVN with svn_dav. I want to disable access to my server using ip address only (ie //1.2.3.4) and I want to be able to ...