Help with httpd.conf file
Posted by: ozstar (---.livrp2.nsw.optusnet.com.au)
Date: April 07, 2010 12:11PM

Hi,


I have a registered domain which is online... autovision.com.au

Its username on our shared host is.... autovisi

I want to have also have it on my wampserver so I can test code.

I have placed all php files in the folder /www/autovision/

I have set the httpd.conf file as this but I am unsure whether this is correct.

I did notice that sometimes when I enterd [autovison] in the browser, I got a site on the web. with that name but .com not .com.au.

Any hekp please?

oz



<VirtualHost *:80>
ServerName www.autovision.com.au
ServerAlias autovision.com.au autovision
DocumentRoot C:/wamp/www/autovision
ErrorLog "C:/wamp/www/autovision/logs/error.log"
CustomLog "C:/wamp/www/autovision/logs/access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp/www
ErrorLog "C:/wamp/www/logs/error.log"
CustomLog "C:/wamp/www/logs/access.log" common
</VirtualHost>

Options: ReplyQuote
Re: Help with httpd.conf file
Posted by: yfastud (Moderator)
Date: April 07, 2010 02:33PM

you need to setup access, dns, and vh; access for permission to connect to your wamp pc, dns to tie domain(s) to your wamp pc, and vh to host multiple domains/websites and even you have only 1 domain/ip, you should use vh to set it up; if dont have real domain, just skip dns guide

to setup access, follow this
[blog.jlbn.net]

to setup vh, follow this
[blog.jlbn.net]

to setup dns, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Help with httpd.conf file
Posted by: ozstar (---.livrp2.nsw.optusnet.com.au)
Date: April 08, 2010 01:25AM

Thank you.

Yes I know I have to do that and am trying now however i am confused as to what I need to do in that code..

I'm not sure when it says 'domain', do I put the full domain name in or use what I have named the 'folder' the domain is in. For example.. www.autovison.com.au or /autovision/



<VirtualHost *:80>
ServerName www.autovision.com.au <<<< Is this the full domain name like I have it??
ServerAlias autovision.com.au autovision <<< Is this correct hwo i have done this?
DocumentRoot C:/wamp/www/autovision <<< Is this correct hwo i have done this?
ErrorLog "C:/wamp/www/autovision/logs/error.log"
CustomLog "C:/wamp/www/autovision/logs/access.log" common
</VirtualHost>

Thanks again for the help.

oz :-)

Options: ReplyQuote
Re: Help with httpd.conf file
Posted by: yfastud (Moderator)
Date: April 08, 2010 04:22AM

<VirtualHost *:80>
//real domain name already setup in dns
ServerName www.real_domain.com
//real_domain_without_www.com already setup in dns but local_domain can be any fake name
ServerAlias real_domain_without_www.com local_domain
//as implied, this folder can be any name but should name after real_domain to distinguish 
DocumentRoot C:/wamp/www/anyname_folder
ErrorLog "C:/wamp/www/anyname_folder/logs/error.log"
CustomLog "C:/wamp/www/anyname_folder/logs/access.log" common
</VirtualHost>

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides



Edited 2 time(s). Last edit at 04/08/2010 04:23AM by yfastud.

Options: ReplyQuote
Re: Help with httpd.conf file
Posted by: ozstar (---.livrp2.nsw.optusnet.com.au)
Date: April 08, 2010 04:32AM

Many thanks for your description.

I'll try and get this old head of mine around it then give it a try.

Your help is appreciated..

oz :-)

Options: ReplyQuote


Sorry, only registered users may post in this forum.