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
2answers
121 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 ...
4
votes
1answer
573 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
57 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
47 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
103 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
222 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
434 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
222 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 ...
2
votes
2answers
1k 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
481 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
2k 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
57 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
219 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
45 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
117 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
64 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
387 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
60 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
1k 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
69 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
752 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
1k 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
46 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
73 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
216 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
200 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
84 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
484 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
63 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
360 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
77 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
128 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
52 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
38 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
312 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
45 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
61 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
622 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
565 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 ...
2
votes
2answers
2k 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
113 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 ...
0
votes
1answer
70 views

Default VirtualHost redirect

I need your help guys. I have a server running Apache 2 and in there I've multiple vhosts bound to different domains. I want that the default vhost (so every address not bounded with a vhost) ...
0
votes
2answers
62 views

Placeholders for apache2 VirtualHost

I have a conf like this <VirtualHost *:80> VirtualDocumentRoot /Users/molfar/Sites/%-2+ </VirtualHost> I'd like to dynamically set error and access logs paths. I tried the following ...
0
votes
1answer
52 views

Multiple VirtualHost Configuration files in Apache2.

I have servers with RHEL-5, Apache-2.2.22, PHP-5.3.25 I know I can configure multiple virtualhost configurations in mutliple file by including these files in httpd.conf. Can Apache support this ...
0
votes
1answer
60 views

Open Ip/folder in Nginx

I want to open a website with no domain name from IP/folder_name Each time I try to access the website , I get redirected to an other website on the same server : Here is my default configuration : ...
1
vote
0answers
256 views

Varnish server in front of nginx server with multiple virtualhosts

I have tried to search for a solution for this, but can't find any documentation/tips on my specific setup. My setup: Backendserver: ngnix: 2 different websites (2 top domains) in virtualenv, ...
0
votes
3answers
266 views

How to access web page on a server using the IP 10.0.0.3?

I have three internal servers that will never have any connection to the internet. I've had to build a local yum repo to set them up with tools like bugzilla and the like. However, all three are ...
0
votes
1answer
66 views

How to protect a virtualhost by Both IP OR password

I have managed to password protect a virtualhost by using this: <Proxy *> Order deny,allow Deny from all Allow from office-ip-1 office-ip-2 ...
1
vote
2answers
311 views

Virtual Host Configuration and mod_rewrite - Removing PHP Extension and Adding Forward Slash

On my production server, things are fine: PHP extension removal and trailing slash rules are in place in my .htaccess file. But locally, this isn't working (well, partially, anyway). I'm running ...