Virtual Hosting Path problems

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
theplinth
Posts: 16
Joined: Sun 7. Mar 2004, 10:47

Virtual Hosting Path problems

Post by theplinth »

I have a mass of different domains set up on my webserver - mainly using mod_rewrite. Phpwcms was having issues because it was inserting apache's document root into some of the pathnames.

I found that by taking out the 'DOCUMENT_ROOT' directive, it would just stick to what I specified within the config file.

Code: Select all

define ("PHPWCMS_ROOT", preg_replace('/\/$/', '', $_SERVER['DOCUMENT_ROOT']).(($phpwcms["root"]) ? "/".$phpwcms["root"] : "") ); 

Code: Select all

define ("PHPWCMS_ROOT", (($phpwcms["root"]) ? "/".$phpwcms["root"] : "") );   // DOCUMENT_ROOT + phpwcms directory
Hows that? :D[/code]
Locked