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)

1
vote
2answers
216 views

Server-level block, deny, or redirect based on User-Agent?

We've recently begun having trouble with web-scraper/DDoS service 80legs taking down our servers a couple times per week due to their abusive crawling practices. Initially we were simply dropping in ...
-5
votes
4answers
117 views

How to get the specs of a server? [closed]

I have a virtual machine and boss says "Hey, get me the specs on that server." presumable because she wants to acquire a comparable one and will ask me to set it up from a backup of our current one. ...
0
votes
1answer
642 views

Apache vhost always show me the same content on different subdomains

I have two subdomains on my VPS, i have registered the two subdomains in my DNS pointing to the same IP address. the version installed is Server version: Apache/2.4.7 for Ubuntu 12.04. I've enabled ...
1
vote
1answer
193 views

Access Apache VirtualHost from localhost

I have a DirectAdmin setup with Apache on a server which is behind NAT. Everything is working correctly when accessing a VirtualHost from outside the machine (either through the Internet and the ...
0
votes
2answers
383 views

Apache SSL virtual host using SNI ignores ServerName

I would like to serve SNI-enabled clients that send the wrong host name a 400 Bad Request, but Apache always serves the default virtual host in this situation. I cannot add a default virtual host that ...
-1
votes
1answer
217 views

Setting up Virtual Hosts in XAMPP on Windows [closed]

I'm having trouble setting up some virtual hosts using XAMPP. The machine name is server02.bb.net and is only accessible on the Intranet. I want other machines on the network to be able to see the ...
0
votes
1answer
99 views

SSL isn't working with Apache

I was trying to install a SSL certificate on my VPS. I Generated the CSR, and Got the Certificate and Intermediate CA. I am working on apache 2 on ubuntu server 13.10. So I used the Default SSL ...
0
votes
6answers
4k views

Use the LAN based IP address to access local Apache on laptop when working outside the network?

<VirtualHost *:80> DocumentRoot "D:/Projects" ServerName 192.168.11.74 </VirtualHost> Why doesn't this work ? How to access websites on the local box (Windows, Apache, MySql, PHP) ...
1
vote
1answer
87 views

Apache Auth directive cascade to alias directories

I have a reasonably lengthy block of authorization config directives within an Apache <Directory> context in a virtual host configuration file. It has LDAP credentials and a complex filter that ...
0
votes
1answer
258 views

Apache Proxy Reroute to Different Port

Trying to redirect my subdomain to a different port other than port 80. The request is received via port 80 and I'm trying to direct the requests to port 10001 as there's a mono server running ...
2
votes
1answer
94 views

Multiple Virtual Host isn't working in apache

I was configuring a VPS with Apache2, MySQL, PHP. The Main site is working fine. Then i went to create a webmail with a Subdomain. Whenever someone browse webmail.mydomain.com he or she should have ...
0
votes
1answer
2k views

Apache VirtualHost setup… 502 Bad Gateway

I am trying to set up apache virtual hosts on Ubuntu 12.04 lts. I followed this guide here http://www.debian-administration.org/articles/412 except I used /var/www not /home/www. Ive set the document ...
0
votes
2answers
314 views

How do i properly configure multiple multiple SECURE virtual hosts - Apache 2.2.15 & RedHat 6

To start, this question might overlap with others but I almost feel like this is a Red Hat issue regarding the "how to properly configure it" part. I have a few websites being served from the same ...
0
votes
0answers
103 views

cannot configure Port forwarding on CISCO Router and Apache Virtual Host

I have 3 websites up and running using a single apache server running on slackware and a netgear wireless router as my gateway, I use port forwarding on the netgear to map services of different hosts ...
0
votes
1answer
748 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
307 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
691 views

Apache virtual host - one site, two IP addresses

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
97 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
51 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
92 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
33 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
47 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
261 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
136 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
120 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
518 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
145 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
669 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
59 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
51 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
501 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
264 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
571 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
59 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
232 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
118 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
69 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
433 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
63 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
73 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
782 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
74 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
243 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
231 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 ...