Could you perhaps please post the whole 000-default.conf file? I am using your settings, we have the same setup and thus the same issue, and adding these lines as you indicated, does not work for me.
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request’s Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly. #ServerNamewww.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
seems like you are placing it on the wrong file.
in sites-available directory, there should be 3 files
root@nextcloud:/etc/apache2/sites-available# ls
000-default.conf
nextcloudtest.our-domain.com.conf
default-ssl.conf
edit the 000-default.conf as mentioned above…
removed the redirect statement you made on the main sites file (nextcloudtest.our-domain.com.conf)
seems like you are placing it on the wrong file.
in sites-available directory, there should be 3 files
root@nextcloud:/etc/apache2/sites-available# ls
000-default.conf
nextcloudtest.our-domain.com.conf
default-ssl.conf
edit the 000-default.conf as mentioned above…
removed the redirect statements you made on the main sites file (nextcloudtest.our-domain.com.conf)
Sorry, forgot to mention this is on CentOS, so it lives in /etc/httpd/conf.d/nextcloud.conf. And whether we put it inside or outside of the </Virtualhost> stanza it makes no difference.
Hi, I was wondering if you knew a solution for this on nginx? I’ve seen various threads listing this solution for apache, and from them I gathered that I needed to adding the following lines to my etc/nginx/sites-enabled/cloud.jackalope.tech configuration"
Which is making me think this is the proper config location. But then why do I have a file under sites-enabled? Does that need to be symlinked to the conf.d file maybe?
Here’s the forum thread I’m logging my progress and working through stuff.