webgui config issue apache 2.4

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

webgui config issue apache 2.4

Postby jeroentje » Mon May 09, 2016 11:44 am

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 :
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>


My apache config contains the following :
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
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012

Re: webgui config issue apache 2.4

Postby jeroentje » Thu May 12, 2016 8:20 am

Anyone with some hints?
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012

Re: webgui config issue apache 2.4

Postby wwolkers » Fri May 13, 2016 12:03 pm

what's in the apache error log?
wwolkers
Member
Member
 
Posts: 273
Joined: September 2008
Location: Netherlands

Re: webgui config issue apache 2.4

Postby jeroentje » Mon May 16, 2016 8:54 pm

Thanks for the reply wwolkers! :)

What i see when connecting is just normal logging like :

Code: Select all
192.168.2.126 - - [16/May/2016:19:50:21 +0000] "GET /domotiga/ HTTP/1.1" 200 5488 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/css/screen.css HTTP/1.1" 200 3278 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/css/form.css HTTP/1.1" 200 1323 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/css/main.css HTTP/1.1" 200 1318 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/assets/eaa3a862/css/bootstrap-responsive.min.css HTTP/1.1" 200 4591 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/assets/eaa3a862/css/yiistrap.min.css HTTP/1.1" 200 1093 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/static/domotiga.js HTTP/1.1" 200 842 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/assets/eaa3a862/js/bootstrap.min.js HTTP/1.1" 200 8176 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/css/print.css HTTP/1.1" 200 1087 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/assets/eaa3a862/css/bootstrap.min.css HTTP/1.1" 200 17728 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:23 +0000] "GET /domotiga/assets/23a619d6/jquery.min.js HTTP/1.1" 200 33950 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:24 +0000] "GET /domotiga/ HTTP/1.1" 200 2363 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:24 +0000] "GET /domotiga/css/screen.css HTTP/1.1" 200 3278 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:24 +0000] "GET /domotiga/assets/eaa3a862/css/bootstrap-responsive.min.css HTTP/1.1" 200 4453 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:24 +0000] "GET /domotiga/assets/eaa3a862/css/yiistrap.min.css HTTP/1.1" 200 1093 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:24 +0000] "GET /domotiga/css/form.css HTTP/1.1" 200 1323 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:24 +0000] "GET /domotiga/css/main.css HTTP/1.1" 200 1318 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:24 +0000] "GET /domotiga/assets/eaa3a862/css/bootstrap.min.css HTTP/1.1" 200 17590 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:25 +0000] "GET /domotiga/static/domotiga.js HTTP/1.1" 200 704 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:25 +0000] "GET /domotiga/css/print.css HTTP/1.1" 200 1087 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:25 +0000] "GET /domotiga/assets/eaa3a862/js/bootstrap.min.js HTTP/1.1" 200 8038 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:25 +0000] "GET /domotiga/assets/23a619d6/jquery.min.js HTTP/1.1" 200 33812 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:25 +0000] "GET /domotiga/static/logo.png HTTP/1.1" 200 11494 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:25 +0000] "GET /domotiga/assets/eaa3a862/img/glyphicons-halflings.png HTTP/1.1" 304 212 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
192.168.2.126 - - [16/May/2016:19:50:25 +0000] "GET /domotiga/static/favicon.ico HTTP/1.1" 200 1510 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"


I then get the normal webgui. However when I press devices, i get a 404. Log says :

Code: Select all
192.168.2.126 - - [16/May/2016:19:50:41 +0000] "GET /domotiga/devices/index HTTP/1.1" 404 716 "https://192.168.2.134/domotiga/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"


No errors.. I am a little stuck, since i pretty much have the same config running on a older apache version and that worked perfectly. I am trying to port my setup to a raspberry. This is running the latest jessie with apache 2.4.
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012

Re: webgui config issue apache 2.4

Postby jeroentje » Thu May 19, 2016 9:45 am

Gave up on apache 2.4.
I am running apache 2.2 on my older system with the webgui, using the raspberry pi running domotiga. Configured it and works.
jeroentje
Starting Member
Starting Member
 
Posts: 21
Joined: February 2012


Return to DomotiGa Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron