Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

ServerAlias doesn't seem to be working


Ok, here is my setup... I have a windows server with 10 IP addresses....

on one IP I have iis running on port 80,
on another IP I have Apache running on port 80.

My problem is with Apache conf. I run the site, buffalochicken.com....but for some reason, only buffalochicken.com works, not www.buffalochicken.com. Below is my snippet of code from the httpd file..with the ip addressed just changed for the purpose of this post:

Code:

NameVirtualHost 192.168.1.3:80
<VirtualHost 192.168.1.3>
ServerName www.buffalochicken.com
ServerAlias buffalochicken.com
DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/buffalochicken.com"
DirectoryIndex index.php
</VirtualHost>

<VirtualHost 192.168.1.3>
ServerName www.someothersite.com
ServerAlias someothersite.com
DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/"
DirectoryIndex index.php
</VirtualHost>

Any ideas?
View Original Thread
Comments
0
Be the first to comment

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect
avatar
Tags: running, directoryindex
Working C example?
May 27, 2010
Hi, looking in the http://activemq.apache.org/c-integration.html C cross-client implementations http://svn.apache.org/repos/asf/activemq/sandbox/openwire-c/ OpenWire and http://svn.stomp.codehaus.org/browse/stomp/trunk/c/ STOMP C…

JAX-RS not working
Aug 16, 2010
Hi I am unable to deploy JAX-RS and JAX-WS web services in Tomcat/JBoss. I believe there is something wrong with the beans.xml file. <jaxws:endpoint id="hello" implementor="#helloRest" address="/Hello"/> …

@Many doesn't seem to be working
Aug 25, 2010
I have the following simple example that should be working (independently they do) but the "many=@Many" result for the rolesAdopted property (that should be calling the "getUserRolesByName" and executing the constructor for instantiating an…

Is FarmWarDeployer is working?
Aug 6, 2010
Hi, This is my first mail and If is not the correct palce then do inform me. I am using Tomcat7.0.0 and working on Linux/Debian machine. I am configuring the Tomcat for the Session object persistance. I have created two instances of tomcat7 in the…

SSL Not working on tomcat 5.5.29
Jul 2, 2010
Hi All, I am working on upgrading tomcat from 5.5.28 to 5.5.29 for one of the applications. I see that the website renders and works fine in 5.5.29 on port 8080 (non SSL) but with SSL (port 8443) the website doesnot run at all. When I try to see…

FileUpload not working
Jul 1, 2010
Hi guys, I'm using the Apache Commons FileUpload lib and I'm getting this strange behaviour in just one of my servers. All others work perfectly. servletfileupload.parseRequest(request) always returns an empty list. But if I check for: …

Re: anyone working on BCEL ?
May 24, 2010
On 24/05/2010, Mark Thomas <ma### @apache.org> wrote: > On 24/05/2010 22:34, sebb wrote: > > Is anyone working on - or wanting to work on - BCEL at present? > > > Try the Jakarta dev list. BCEL isn't a commons component. …

Caching not working
Jun 24, 2010
Hi, I have got a proxy running using ATS. The sole entry in remap.config is - map http://localhost:8080/ http://localhost:8282/ However caching does not take place. Every query i make is redirected to the origin server. The contents of…

working toward a release
Aug 23, 2010
Hi, I've been working to overhaul the build system to phase out the custom JavaScript build script in favor of Ant. I'm currently writing a blog post about the full process leading up to this, but suffice it to say that I now have an Ant script…

working toward a release
Aug 29, 2010
Hi All guys, since the Commons PMC awarded me giving me the writing rights, I'd like to work on the Digester to publish a new release, since a new feature will be contained. For what I can see, there are few build-related minor issues: - ant…