[Git][debian-edu/debian-edu-config][master] etc/apache2/sites-available/debian-edu-default.conf: Use SERVER_ADDRESS in...

"Mike Gabriel (@sunweaver)" <[email protected]>
Newsgroups gmane.linux.skolelinux.cvs
Message-ID <[email protected]>

Mike Gabriel pushed to branch master at Debian Edu / debian-edu-config


Commits:
69f0f3ee by Mike Gabriel at 2025-09-04T13:15:53+02:00
etc/apache2/sites-available/debian-edu-default.conf: Use SERVER_ADDRESS in RewriteRule instead of hard-coded 'www'. Supports https redirection if connected to e.g. a VPN IP owned by TJENER.

- - - - -


1 changed file:

- etc/apache2/sites-available/debian-edu-default.conf


Changes:

=====================================
etc/apache2/sites-available/debian-edu-default.conf
=====================================
@@ -8,7 +8,7 @@
 		RewriteEngine On
 		RewriteCond %{SERVER_PORT} 80
 		RewriteCond %{REQUEST_URI} !\.dat$
-		RewriteRule ^(.*)$ https://www/$1 [R=301,L]
+		RewriteRule ^(.*)$ https://%{SERVER_ADDRESS}/$1 [R=301,L]
 		Options Indexes FollowSymLinks MultiViews
 		AllowOverride None
 		Require all granted



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/69f0f3ee7a70189659f3d12f365ab63af83b52fe

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/commit/69f0f3ee7a70189659f3d12f365ab63af83b52fe
You're receiving this email because of your account on salsa.debian.org.

_______________________________________________
debian-edu-commits mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-edu-commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.