Continuing the discussion from So, what are you working on? - 28 Nov 17:
have you checked the checkbox āRoot directory file listingsā in the virtualhost panel ?
Nice to see you thereā¦
Nice to see you too Stephane!
I didnāt check it, and after change itās the same.
what is the url you used, what is your network configuration, does the nethserver is your gateway ?
this is how I do, workable by default. In the /etc/hosts
of my (remote) laptop I put
192.168.12.174 domain.com #adapt to the url of your NS
then in firefox put the url : domain.com
The host is here: vps1.mail2voice.org
the virtual host is : board.mail2voice.org (itās a subdomain)
Network: Iāve just 1 NIC, DHCP, green
The NS is the gateway.
Who is the owner of the files? For me itās āftpā.
Must I create a āhtmlā directory?
When I put a blank file āindex.htmlā, I stay on the NS welcome page.
My hosts file is good:
XX.XX.XX.XX vps1.mail2voice.org vps1 board.mail2voice.org
- check the /etc/hosts of the server you must find the server name and also board.mail2voice.org
- verify that ādig any board.mail2voice.orgā in your server and on your laptop gives you the dns record (the ip of your server)
recreate another vhost and check the logs and any error in
/var/log/messages
/var/log/httpd/access_log
/var/log/httpd/error_log
Thank you!
I found an error in httpd/error_log:
[Mon Dec 04 09:44:52.099171 2017] [rewrite:error] [pid 2498] [client XX.XX.XX.XX:43252] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/lib/nethserver/vhost/board/
Yesā¦ I have a .htaccess file! My bad, I didnāt think it before.
When I rename this file I can see the good website. So NS is ok!
But I need this feature, I have to learn more about rewritingā¦
[edit:]
Itās ok, Iāve just add this line in the .htaccess and all is OK:
Options -MultiViews
Laurent I set your post as the solution of your thread, Happy that NS can fit your need
I know that you are the speaker of a smart project at ācapitole du Libreā, I was not at your talk, you should start a thread one day and present it.
Thank you for your help and your welcome here!
Yes Iām the holder of the Mail2Voice project. Itās a FOSS, a client mail for persons with special needs (illiteracy, motor handicap, cognitive handicap, DYS).
Let me some time for discover it a little more, and perhaps Iāll present how NethServer help us in this project.
Iām curious, pleas do it as soon as possible