webgui config issue apache 2.4
Posted: Mon May 09, 2016 12:44 pm
Hi
I am having some issues, getting domityii to run under apache 2.4. The site is working, however when I click on a item from the domotiy menu list, the rewrite does not seem to work, resulting in a message "The requested URL /domotiga/devices/index was not found on this server."
I have it running already in a setup running apache 2.2, but don't really see what the problem is.
What I am trying to accomplish is to be able to use the gui under /domotiga which works, except for the links on the page.
I have a .htacces file in the webdire of domotiga containing :
My apache config contains the following :
I am having some issues, getting domityii to run under apache 2.4. The site is working, however when I click on a item from the domotiy menu list, the rewrite does not seem to work, resulting in a message "The requested URL /domotiga/devices/index was not found on this server."
I have it running already in a setup running apache 2.2, but don't really see what the problem is.
What I am trying to accomplish is to be able to use the gui under /domotiga which works, except for the links on the page.
I have a .htacces file in the webdire of domotiga containing :
Code: Select all
AuthName "DomotiGa Web"
AuthType Basic
AuthUserFile /var/www/xyz/domotiga/.htpasswd
#
Require valid-user
Options +FollowSymLinks
IndexIgnore */*
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /domotiga/
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
</IfModule>
Code: Select all
Listen 443
NameVirtualHost *:443
RewriteEngine On
# This will enable the Rewrite capabilities
RewriteCond %{HTTPS} !=on
# This checks to make sure the connection is not already HTTPS
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
SSLStrictSNIVHostCheck off
<VirtualHost *:443>
DocumentRoot /var/www/xyz
ServerName http://www.xyz.nl
ServerAlias xyz.nl
SSLEngine On
SSLCertificateFile /etc/ssl/certs/xyz_nl.crt
SSLCertificateKeyFile /etc/ssl/certs/xyz.key
SSLCertificateChainFile /etc/ssl/certs/AddTrustExternalCARoot.crt
<Directory />
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>
<Directory /var/www/xyz>
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
allow from all
</Directory>
<Directory /var/www/xyz/domotiga>
AllowOverride All
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride AuthConfig
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/xyz_error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/xyz_access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride AuthConfig
Order deny,allow