Not sure what I am missing, at some point (I think after running certbot for LetsEncrypt) I am stuck in a rewrite loop, but can’t seem to find where it is set/configured to fix it.
Fresh install, Ubuntu, Apache, Let’s Encrypt.
Sample from access.log:
4.7.66.130 - - [24/Jun/2019:16:39:56 +0000] "GET /nextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloudnextcloud HTTP/1.1" 404 3944 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
Apache config:
VirtualHost configuration:
*:443 cloud.texicali.net (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
*:80 cloud.texicali.net (/etc/apache2/sites-enabled/000-default.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
I commented out the 000-default.conf rewrite to rule it out (still happening):
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
#RewriteCond %{SERVER_NAME} =cloud.texicali.net
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Not sure what I am missing or how to track it down. Any help is greatly appreciated.
Thanks,
JP