Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

All urls pointint to localhost instead of domain name


xazos79

Recommended Posts

Posted

Hi all,

 

Silly question i know. But i'm not sure where in the config file(s) i can rectify this. If i hit my test website outside of home, all my pictures and links are broken as they point to http://localhost...

 

Where can i find the setting to alter this behaviour to point to my domain instead?

 

Cheers,

 

Sam

Posted
http_server= http://www.yourdomain.com etc.

 

Vger

 

Thanks for the hand, but putting that variable in the httpd.conf causes apache to error when attempting to start. I have the following section in my config file, but it still makes no difference.

 

<VirtualHost *:8080>

# ServerAdmin [email protected]

DocumentRoot G:\apache_webs

ServerName myaddress.com:8080

# ErrorLog logs/dummy-host.example.com-error_log

# CustomLog logs/dummy-host.example.com-access_log common

</VirtualHost>

 

Do i need to change my windows host file to point to this domain too?

Posted

The http_server address is in the osCommerce includes/configure.php file.

 

Are you trying to run a web server on your computer as an online server? If so, this question is more appropriate for forums which deal with self-administering servers and not osCommerce.

 

Vger

Posted
The http_server address is in the osCommerce includes/configure.php file.

 

Are you trying to run a web server on your computer as an online server? If so, this question is more appropriate for forums which deal with self-administering servers and not osCommerce.

 

Vger

That worked a treat, thanks.

 

Eventually it will be. But for the moment me and a couple of friends are testing the site which resides on my box (with dyndns). Seeing as it was an oscommerce setting, i can't see how its not appropriate for the Installation and Configuration section of the OScommerce forum.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...