Virtual Host, Domain HELP
Posted by: semckone (---.223.223.187.nw.nuvox.net)
Date: April 15, 2011 09:31PM

I know there are discussions about setting up virtual host, but I cannot get this to work. Maybe I dont' understand what 'virtual host' means and am going about this the wrong way?

Here's what I want to do:
1. Use localhost to access WAMP
2. Use www.porticool.com, my registered domain, to access my www/porticool folder (which includes an index.html file)

Here's what I've done:
1. I set up my registered domain, www.porticool.net, to DNS with my IP address.
2. I set up the httpd.conf file in folder C:\wamp\bin\apache\Apache2.2.17\conf, uncommenting the "#Include conf/extra/httpd-vhosts.conf" line by removing the hash tag.
3. I added the following to httpd-vhosts:
NameVirtualHost *:80

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

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

4. I opened file "hosts" in folder C:/Windows/System32/drivers/etc then replaced all text with:
127.0.0.1 localhost
127.0.0.1 porticool

Finally, I restarted all services and attempted to access my site. It did not work. Can someone help me figure out what I'm doing wrong? I simply want WAMP to be the server I use and for the public to be able to view my site.

I appreciate any help, advice.

Options: ReplyQuote
Re: Virtual Host, Domain HELP
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: April 15, 2011 09:46PM

remove 127.0.0.1 porticool


this is for a virutal host.. and your not actually looking for that.

if you need help i can help you with teamviewer?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Virtual Host, Domain HELP
Posted by: yfastud (Moderator)
Date: April 15, 2011 10:59PM

When did you setup DNS? Remember, it would take up to 72hrs to take effect winking smiley

No matter within or outside LAN access, 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/IP's and even you have only 1 Domain/IP, you should use VH to set it up w/ the site you want to show up first on top and localhost on bottom and others in middle if having more than 1 site; w/ VH, other PC's, no matter w/i or outside LAN, can access/see websites/contents on your wamp PC. 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: Virtual Host, Domain HELP
Posted by: semckone (---.223.223.187.nw.nuvox.net)
Date: April 29, 2011 06:57PM

Thanks for your help.

I know the DNS must be working, because when I go to porticool.com I can see the WAMP server page. So obviously the domain is connecting to my comptuer's IP, yes?

But I went through everything else, including setting up the VH file and removing the "127.0.0.1 porticool" from the host file. Yet, my Porticool index file isn't showing up. Instead, I see my WAMP server page.

Any additional advice? I feel like this is so over my head, so I really appreciate all the help...

Options: ReplyQuote
Re: Virtual Host, Domain HELP
Posted by: yfastud (Moderator)
Date: April 29, 2011 11:35PM

Quote

3. I added the following to httpd-vhosts:
You added or you replace??? if replaced, make sure no typo.
Anyway, for VH scripting, you should post in my blog instead here since this forums is for Wampserver winking smiley

Have fun,

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.