I installed OwnCloud on Apache2 with SSL. It works great but as soon as I change the ip adress to another one it doesn't work anymore. Unfortunately I'm not able to find the error and I didn't make any fix bindings to the ip. I also searched trough all config files with grep -ir 192.168.1.27 /etc/ to see if there is somwhere the old ip.
What could be the problem?
How I changed the ip:
I editet /etc/network/interfaces and restarted the server
Browser Error with new IP:
Code: Select all
Forbidden
You don't have permission to access / on this server.
Apache/2.4.25 (Debian) Server at 192.168.1.131 Port 443
Code: Select all
<VirtualHost *:80>
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/owncloud.crt
SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key
DocumentRoot /var/www/html/
<Directory /var/www/html/>
AllowOverride All
order allow,deny
Allow from all
</Directory>
</VirtualHost>
All other config files also point to /var/www/html/. When i change the ip back it works great again.[Sat Nov 04 08:05:31.637018 2017] [autoindex:error] [pid 780] [client 192.168.1.149:63979] AH01276: Cannot serve directory /usr/share/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
Thanks
Patrick