From localhost page to web, not to wamp
Posted by: ozstar (---.livrp2.nsw.optusnet.com.au)
Date: April 19, 2010 01:02AM

HI,

For some reason this oscommerce site I have just added to wamp doesn't act like the rest which all work well.

This is different as it is located in www.domainname/catalog as opossed to the others which are in the root.

I think my trouble is how I set the httpd-vhosts.conf but I have tried a few things but it still goes to the actual online domain website when I click on it from the locahost page.

If I put ith is the browser, I get the localhost site okay,

[localhost]

but not when I use the localhost link page.

This is what is in my vhosts...

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


I do have it listed correctly in 'hosts' in windows.

Thanks

oz

Options: ReplyQuote
Re: From localhost page to web, not to wamp
Posted by: yfastud (Moderator)
Date: April 20, 2010 11:59PM


Options: ReplyQuote
Re: From localhost page to web, not to wamp
Posted by: Wombat (203.171.197.---)
Date: April 27, 2010 06:32PM

Any function / process / call that causes a browser to direct to "www."blahblah.dom will force the BROWSER to look on the web (a part of which your Wamp server is NOT dns registered for). So remove any reference to www. in links and redirects etc. This is exacerbated if you remain on-line when using a local pc dev server.

Regards, 'imself.

-----------------------------------------------------------------
...bug free, my programs do occasionally include undisclosed FREE random features.

Options: ReplyQuote
Re: From localhost page to web, not to wamp
Posted by: ozstar (---.livrp2.nsw.optusnet.com.au)
Date: April 28, 2010 06:34AM

Thanks.. :-)

Options: ReplyQuote


Sorry, only registered users may post in this forum.