Hi,
I'd like to set up apache24 to host a couple of domains. I had something hosted here before, but I think I've botched my configuration, currently only the first site I've set up is working.
What I would LIKE to do is this:
# winlua.net. Plain html site with some download links
www.winlua.net -> .../www/winlua_net
#Bookstack wiki. php based. I have 7.4.4 installed, but I'm not sure if apache is correctly configured
docs.winlua.net -> .../www/bookstack
Currently, www is in the default /usr/local/. My httpd.conf can be paraphrased as this:
I then have a conf file in sites-enabled called winlua_net.conf
This site works.
But I created a second conf file in sites-enabled called docs_winlua_net.conf
I've tried various things but that site always gives me "Index of /". I've tried both an absolute and relative path in DocumentRoot. Is there anything obvious that I have done incorrectly?
I'd like to set up apache24 to host a couple of domains. I had something hosted here before, but I think I've botched my configuration, currently only the first site I've set up is working.
What I would LIKE to do is this:
# winlua.net. Plain html site with some download links
www.winlua.net -> .../www/winlua_net
#Bookstack wiki. php based. I have 7.4.4 installed, but I'm not sure if apache is correctly configured
docs.winlua.net -> .../www/bookstack
Currently, www is in the default /usr/local/. My httpd.conf can be paraphrased as this:
XML:
ServerRoot "/usr/local"
#Standard modules n stuff
<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "/usr/local/www"
IncludeOptional etc/apache24/sites-enabled/*.conf
I then have a conf file in sites-enabled called winlua_net.conf
XML:
<VirtualHost *:80>
#Can this be relative to the main document root?
DocumentRoot "www/winlua_net"
ServerName www.winlua.net
</VirtualHost>
This site works.
But I created a second conf file in sites-enabled called docs_winlua_net.conf
XML:
<VirtualHost *:80>
DocumentRoot "www/bookstack"
ServerName docs.winlua.net
#ServerAlias www.winlua.net/docs
DirectoryIndex index.php
#RewriteEngine On
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^ index.php [L]
</VirtualHost>
I've tried various things but that site always gives me "Index of /". I've tried both an absolute and relative path in DocumentRoot. Is there anything obvious that I have done incorrectly?