slas7713 Posted December 7, 2005 Posted December 7, 2005 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>
kgt Posted December 7, 2005 Posted December 7, 2005 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
slas7713 Posted December 7, 2005 Author Posted December 7, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.