Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

apache2 config include folder path into URL

$
0
0

My current apache config:

<VirtualHost *:80>     ServerAdmin admin@example.com     DocumentRoot /var/www/html/lwiki     ServerName wikiserver.internal     ServerAlias wikiserver<Directory /var/www/html/lwiki>        Options +FollowSymlinks        AllowOverride All        Require all granted</Directory></VirtualHost>

At the moment when browsing to wikiserver.internal the index of folder /var/www/html/lwiki is called, as expected.

Because I've migrated the wiki from an old machine I would need to make sure the folder lwiki is included inside the URL too.

For example:

http://wikiserver.internal/index.php

should be shown inside navigationbar of browser as

http://wikiserver.internal/lwiki/index.php

How to make sure the lwiki folder should be included to all URLs for sure.


Viewing all articles
Browse latest Browse all 5049

Trending Articles