Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Problem with DOCUMENT_ROOT when accessing virtualhosts remotely (2 replies)

$
0
0
WAMP 3.2.0
Win 10 x64

I have a problem accessing virtualhost include files from other devices on my local network. Everything works fine on the host PC.

I created a test file:
<?php
$INC_DIR = $_SERVER['DOCUMENT_ROOT']."/includes/";
echo($INC_DIR);
?>

On the local PC this correctly returns: C:/wamp64/www/RWCCBS/includes/

On another PC on the same LAN it returns: C:/wamp64/www/includes/ i.e. it's missing the virtualhost directory.

Is this anything to do with the +FollowSymLinks in the httpd-vhosts.conf file?

Thank in advance for any assistance...

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>