HELP. Can someone look at my httpd.conf file? PLEASE
Posted by: keedoery (---.84.233.220.exetel.com.au)
Date: October 26, 2007 02:13AM

I cant work out what's happening with my webpages.

I was wondering if someone out there had a spare moment to look at my httpd.conf file.

I'm trying to host 2 websites on my machine.

One is at:
c:\wamp\www\6thgear\index.html
and the other is at:
c:\wamp\www\mydreamcastle\index.html

For some reason, when i go to either website (www.6thgear.com.au or www.mydreamcastle.com.au) i end up at the wamp home page?

Can someone please help and let me know what's going on. you can download my conf file at:

[www.6thgear.com.au]

I have spend the last 2 weeks trying to work it out. I have read the help file at:
[httpd.apache.org]
and followed it right down to the word.

If i take my IP address out and just use * or *:80, when i go into the web browser it says forbidden?

What's going on?

Options: ReplyQuote
Re: HELP. Can someone look at my httpd.conf file? PLEASE
Posted by: toivo (---.nsw.bigpond.net.au)
Date: October 26, 2007 10:26AM

Hi,

Your httpd.conf file does not seem to be accessible. However, here is my recent response to a similar question how to make Wamp serve two domains:

Edit the Apache configuration file c:\wamp\Apache2\conf\httpd.conf. Find the following two lines :

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

Uncomment the second line. This line adds the file c:\wamp\Apache2\conf\extra\httpd-vhosts.conf to
the server configuration.

The default configuration file httpd-vhosts.conf has a sample setup for two name-based virtual hosts. The line starting with ServerName specifies the domain which the virtual host serves. The domains can be full domain names, not just subdomains, as long as the domain names get resolved into your public IP address.

If you want to see how the virtual host setup works before going live, you can create dummy domains in the hosts file c:\windows\system32\drivers\etc\hosts in your development environment:

127.0.0.1 www.example.com
127.0.0.1 www.example2.com
127.0.0.1 www.example3.com

Each virtual host can have its own <directory> definition inside the <virtualhost>
tags. As the sample setup shows, it is best to keep the log files for each domain separate.

You can check the syntax of your configuration files by going to the command prompt and running the following command:
c:\wamp\apache2\bin\httpd -t

More information about name-based virtual hosts is available from [httpd.apache.org]

Try to get your setup working locally first, then it should be easy to run the server behind a public IP address.

You do not need to specify your IP address in the configuration to get it to work, unless you want to restrict the access. The default with * or *:80 works fine, but you need to get the definitions of the virtual servers and the folders correct. Keep also in mind that the actual Apache documentation may be oriented more towards Unix/Linux than Windows

Regards,



toivo
Sydney, Australia

Options: ReplyQuote
Re: HELP. Can someone look at my httpd.conf file? PLEASE
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: October 26, 2007 04:40PM

read the virtual host section of my manual. link to manual is in my sig.



CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my WAMP User Manual/Guide here!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote


Sorry, only registered users may post in this forum.