Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Any web admins for info


slas7713

Recommended Posts

Are there any web admins out there who can give insight into the relationship between Apache's VitualHost and Aliases in regards to the configure.php file. More specifically:

 

1) How does establishing an Alias in the Apache httpd.conf file affect the configure.php file in relation to the required paths and cookies.

 

Example:

In Apache: Alias /mycatalog/ /usr/local/www/mystore/catalog/

In configure.php: define('HTTP_COOKIE_PATH', '/mycatalog/');

 

2) How does the configure.php file relate to a virtual host in Apache. For example if the registered domain for the store is at www.mystore.com (defined as a virtual host in Apache) and the site is hosted on the server www.myserver.com, how are the setting for the defines for HTTP_SERVER and other best handled.

 

Example:

 

ServerName www.myserver.com

 

<VirtualHost *>

DocumentRoot /usr/local/www/mystore/catalog/

ServerName www.mystore.com

</VirtualHost>

Link to comment
Share on other sites

For the most part, just set up Apache however you wish. If you alias a directory, then the WS_* defines are the alias directory. The FS_* constants are the aliased directories.

 

If your doing a VirtualHost, the HTTP_SERVER constant is the virtual domain.

 

It basically works exactly how you want it to. Just make the PHP variables match the Apache settings. HTTP_SERVER is whatever Apache says it is. WS_CATALOG is whatever Apache says it is.

 

FS_* must of course be real paths.

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

For the most part, just set up Apache however you wish. If you alias a directory, then the WS_* defines are the alias directory. The FS_* constants are the aliased directories.

 

If your doing a VirtualHost, the HTTP_SERVER constant is the virtual domain.

 

It basically works exactly how you want it to. Just make the PHP variables match the Apache settings. HTTP_SERVER is whatever Apache says it is. WS_CATALOG is whatever Apache says it is.

 

FS_* must of course be real paths.

 

Thanks KG,

 

I'm still trying to get my SSL implementation working and after configuring my configure.php file 50 different ways I'm now trying various configuration options in my httpd.conf file.

 

http://www.oscommerce.com/forums/index.php?showtopic=183939

 

Steve L

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...