[Solved] change document root

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
forstera
Posts: 6
Joined: Fri Jun 05, 2020 2:02 pm

[Solved] change document root

Post by forstera » Mon Jun 08, 2020 9:03 am

sorry, another question ...

so everything working fine now :)
So, I wanted to change my document root because I need to access my phpmyaq using an adresse like http:/myserver/phpmyfaq and I'd like to be able to reach my server just by http://myserver.
so,in httpd.conf, I changed the value of

DocumentRoot "/var/www/html"
by
DocumentRoot "/var/www/html/phpmyfaq"

but when I'm trying to log on my server, I get the following error :
The requested URL /phpmyfaq/ was not found on this server.


It seems there's something with relative paths and I should modify it but didnt found where for the while ...
Thanks for your help
Last edited by forstera on Mon Jun 08, 2020 1:16 pm, edited 1 time in total.

Thorsten
Posts: 15051
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: change document root

Post by Thorsten » Mon Jun 08, 2020 10:14 am

Hi,

the document root is stored in the admin configuration and in the .htaccess file.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply