Hello - moving from apache to OLS. I am adding my first vhost. Have read theu documentation - run the script vhost.sh , configured in webadmin and added listeners
Kindly help me where I am going wrong:
1. Added /usr/local/lsws/conf/vhosts/mydomain.com/vhconf.conf . owned by lsadm:www-data. Docroot /var/www/mydomain.com owned by www-data:www-data
2. Above was added in webadmin (webadmin created blank file which I populated using conf/Example/vhconf.conf
3. In webadmin - i added the vhost mydomain.com , configured SSL to /etc/letsencrypt/live/mydomain.com/privkey.pem , fullchain.pem
4. in listener for port 80 and port 443 added the vhost mydomain.com
5. Restarted server - no error entries in server.log
5. http://mydomain.com or https://mydomain.com ot http://mydomain.com/x.php or https://mydomain.com/x.php lead to 404 page
My vhconf.conf file looks like this
docRoot /var/www/mydomain.com/
errorlog /usr/local/lsws/conf/vhosts/mydomain.com/debug.log {
useServer 0
logLevel DEBUG
}
index {
useServer 0
indexFiles index.php index.html
}
rewrite {
enable 0
inherit 0
}
addDefaultCharset off
}
vhssl {
keyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
certFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
certChain 1
}
Kindly help me where I am going wrong:
1. Added /usr/local/lsws/conf/vhosts/mydomain.com/vhconf.conf . owned by lsadm:www-data. Docroot /var/www/mydomain.com owned by www-data:www-data
2. Above was added in webadmin (webadmin created blank file which I populated using conf/Example/vhconf.conf
3. In webadmin - i added the vhost mydomain.com , configured SSL to /etc/letsencrypt/live/mydomain.com/privkey.pem , fullchain.pem
4. in listener for port 80 and port 443 added the vhost mydomain.com
5. Restarted server - no error entries in server.log
5. http://mydomain.com or https://mydomain.com ot http://mydomain.com/x.php or https://mydomain.com/x.php lead to 404 page
My vhconf.conf file looks like this
docRoot /var/www/mydomain.com/
errorlog /usr/local/lsws/conf/vhosts/mydomain.com/debug.log {
useServer 0
logLevel DEBUG
}
index {
useServer 0
indexFiles index.php index.html
}
rewrite {
enable 0
inherit 0
}
addDefaultCharset off
}
vhssl {
keyFile /etc/letsencrypt/live/mydomain.com/privkey.pem
certFile /etc/letsencrypt/live/mydomain.com/fullchain.pem
certChain 1
}