DOCUMENT_ROOT

Currently reading
DOCUMENT_ROOT

2
0
NAS
DS716j
Operating system
  1. Windows
Last edited:
My website is on a hosting plattform.
$_SERVER["DOCUMENT_ROOT"] gives me following result:
"/home/bierglae/www/bierglaeser.ch"

For developping reasons I use WebStation (DiskStation 7.1.1)
In the folder /Web I created another folder bierglaeser.ch (same name as on the hoster) --> /web/bierglaeser.ch with my website.
$_SERVER["DOCUMENT_ROOT"] gives me following result:
"/var/services/web" (-->missing /bierglaeser.ch)

On the Webstation I created a script -language Configuration Profile (not sure whether name is correct, I have a german NAS) and I tried with open_basedir and doc_root but nothing worked. I did not find a possibility to configure my local WebStation on /web/bierglaeser.ch to receive Document_Root /var/services/web/bierglaeser.ch.

Additional I created an virtual host bierglaeser.ch. The configuration shows me for Document Root is shown /web/bierglaeser.ch but $_Server["Document Root"] is still false.
 

Attachments

  • VirtualHost.pdf
    185.2 KB · Views: 3

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top