virtualhost

Apache gives me 403 Access Forbidden when DocumentRoot points to two different drives

I am getting an 403 access forbidden when attempting to open a page under a vhost where the document root is sitting on a different drive than where apache is sitting. I installed using the apachefriends release. This is my httpd-vhosts.conf file: NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> ServerName foo.localhost Document...

How to disable all apache virtual hosts?

I'm writing a shell script to do some web server configuration. I need to disable all currently active virtual hosts. a2dissite doesn't accept multiple arguments, so I can't do a2dissite `ls /etc/apache2/sites-enabled` Should I use find? Is it safe to manually delete the symlinks in /etc/apache2/sites-enabled? ...

What Virtual Host Definitions do I need to support subdomain.mydomain.com and *.mydomain.com on the same IP Address on Apache 2?

I have a virtual host setup on Apache 2 like so (simplified): <VirtualHost *> ServerName domain.com ServerAlias *.domain.com DocumentRoot /var/www/domain.com/html </VirtualHost> <VirtualHost sub1.domain.com> ServerName sub1.domain.com DocumentRoot /var/www/sub1.domain.com/html </VirtualHost> <VirtualHost sub2.domain.com> S...

IIS equivalent of VirtualHost in Apache

Hi Guys, Is there an equivalent to Apache's VIrtualHost for IIS? We want to be able to run multiple websites from one IP and address them with different dns names. i.e. I have www.dom1.com www.dom2.com www.dom3.com that all point to 123.123.10.1. Apache would just be running on port 80 and just use virtualhost to decide which sit...

How can I implement a global RewriteCond / RewriteRule in Apache that applies to all virtual hosts?

The title pretty much says it all. :-) I have lots of virtual hosts and I want to put a single rewriting block at the top of the httpd.conf file that rewrites URLs no matter which virtual host the request might be directed to. How the heck do I do this? I found this but my question is the same: how can I do this without resorting to ...

SQL Server 2005 Backup strategy

I manage a web application for a client with the following specs: ASP.net 3.5 running on a Virtual Windows 2003 Web Server SQL Server Standard hosting the database Database current size of 6Gb, with 1Gb/month growth rate One single table is responsible for 98% of the size, holds the most critical data for the client Log is not kept for...

Why can Wordpress suddenly connect to the MySQL database server once I update the host from "localhost" to "mydomain.com" when I have VirtualHosts set up in Apache?

This is a specific variation on the "can't connect" problem. In my case, I've just set up two virtual hosts in my httpd.conf listening on port 80. The declaration looks like: NameVirtualHost *:80 <VirtualHost *:80> ServerName site1.dev DocumentRoot /www/site1 </VirtualHost> <VirtualHost *:80> ServerName site2.dev Do...

Way to write vhost for same subdomain across multiple domains?

I've got several domains setup in /etc/apache2/sites-enabled: domain1.com domain2.com domain3.com I need to setup webmail.domain*.com for each one. I can do this with individual vhost files for each, but is there a way to write a wildcard vhost to be caught by all domains? Also, the same directory should be served by all webmail.*.co...

Let Apache serve multiple directories through single <Location>

OK. I'm pretty much an apache HTTPD noob so please bare with me. I have an issue with serving a large amount of VirtualHosts and I was wondering if there is a more efficient way of doing things. I'm currently using the Location directive to serve a large amount projects from different departments, over 300 projects from 19 departments ...

Do I have to duplicate the Virtualhost directives for port 80 and 443?

I have a long and intricate list of <VirtualHost> directives, and I have to duplicate them into separate <VirtualHost> groups for ports 80 and 443 because I'm using SSL. Whenever I update my mod_rewrite rules I have to remember to do it in both places or else I'll break my app... this duplication is asking for trouble. Is there a way to ...

Virtualhost For Wildcard Subdomain and Static Subdomain

I have an odd situation where I want to have the urls app1.example.com, example.com and *.example.com all using a different virtual host. This is what I have (excluding example.com cause it just makes it messier) ServerName app1.example.com ServerAlias app1.example.com DocumentRoot = /var/www/app1 # Other configuration for th...

Python3 Http Web Server: virtual hosts.

Hello, I am writing an rather simple http web server in python3. The web server needs to be simple - only basic reading from config files, etc. I am using only standard libraries and for now it works rather ok. There is only one requirement for this project, which I can't implement on my own - virtual hosts. I need to have at least tw...

Apache 2.2 ignoring VirtualDocumentRoot VirtualHosts?

I have several domains that I would like to have wildcard subdomains enabled for through mod_vhost_alias Included in my httpd.conf I have the following generalized rules: <VirtualHost [ip here]:80> ServerName domain1.com ServerAlias www.domain1.com DocumentRoot /home/user1/public_html </VirtualHost> <VirtualHost [ip her...

Apache Virtual Hosts and mod_rewrite conflicts

I've been scouring the net and SO and I can't get around or through this problem. We have a bunch of subdomains and a few dedicated servers. One server does double-triple duty as issue tracking and landing page. Problem is the wildcard landing page doesn't take you to the correct virtual host page sometimes. I've been looking at wildcar...

How do I set up Jetty 6 & Jboss 4.0.5 virtual hosting?

I have 2 webapps deployed in the same JBoss/Jetty server. In Jetty 5.1.14 I had the following jetty-web.xml which configured one of the apps to run as a virtual host (on the same port): <Configure class="org.jboss.jetty.JBossWebApplicationContext"> <Call name="addVirtualHost"><Arg>app2.localhost.com</Arg></Call> </Configure> This ...

Problem with configuring virtual hosts

Some details XAMPP 1.7.1 OS tested on vista and xp Hello everyone. I have some problems with configuring my virtual hosts. Currently I have two sites. Here is my vhost.conf file: <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot c:/xampp/htdocs/site1/trunk/ ServerName site1.local </VirtualHost> <VirtualHost *:80>...

JBoss 4.2.3 EAR and Apache 2.2 virtual hosts with jk_mod serving blank white page

I have an EAR file I am trying to deploy alongside various WAR deployments on JBoss 4.2.3 The individual standalone WAR deployments are all working fine and are just a copy of the same application that is contained inside the EAR but the EAR deployment and it's included WAR(s) does not work correctly. I am receiving a blank white page ...

Apache2 access restricted to local LAN

Until recently, I had a bunch of virtual sites set up like so: <VirtualHost 127.0.0.1:1234> ... This works fine for testing on my local machine, where I use a Linux desktop. In order to test how MS and explorer displays my pages from my Windows laptop, I changed this to <VirtualHost *:1234> ... Which also works fine, calli...

Using WebPy as a static HTTP content server

How is it possible to tune up WebPy to use it to serve static content for several websites? I run two websites on one IP using web.subdomain_application for name-based virtual hosting. The implied solution for hosting static content is to create a static/ directory in the directory containing HTTP server script and put all static files ...

How do I make Apache know which app directory to use for different domains?

I'm trying to create a site with CodeIgniter. I will have multiple domains served from this server, and what I am trying to do is to separate the HTTP requests for www.example1.com from the ones for www.example2.com and then redirect them to the their correct application folders. Say this is my directory structure: system application...