Nextcloud version: 11.0.0
Operating system and version:CentOS 7
Apache or nginx version: Apache 2.4.6
PHP version :5.6
Is this the first time you’ve seen this error and can you replicate it?:
I have had this issue since it was an ownCloud.
The issue you are facing:
I cannot seem to get redirection to https to work. my server is set to a static ip address(replaced by x’s below)/cloud_directory.
I added the following to my httpd.conf file:
<VirtualHost *:80>
ServerName xxx.xxx.xxx.xx/cloud
Redirect permanent / https://xxx.xxx.xxx.xx/cloud
</VirtualHost>
When this is saved and httpd restarted the browser redirects to https, but the page report:
Firefox can’t establish a connection to the server at xxx.xxx.xxx.xx.
The site could be temporarily unavailable or too busy. Try again in a few moments. If you are unable to load any pages, check your computer’s network connection. If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
Here is everything that is not commented out of my httpd.conf file:
ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "/var/www/html"
<Directory "/var/www">
AllowOverride None
Require all granted
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "logs/error_log"
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "logs/access_log" combined
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</IfModule>
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
AddDefaultCharset UTF-8
<IfModule mime_magic_module>
MIMEMagicFile conf/magic
</IfModule>
EnableSendfile on
<VirtualHost *:80>
ServerName xxx.xxx.xxx.xx/
Redirect permanent / https://xxx.xxx.xxx.xx/
</VirtualHost>
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):