clear up the apache config
All checks were successful
docker / docker (push) Successful in 11s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-05-13 02:03:55 +03:00
parent 66fded95ec
commit f401e78edd
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -6,27 +6,27 @@ ServerName localhost
DocumentRoot "/var/www/html/4get"
LogLevel warn
LogLevel error
CustomLog /dev/null common
ErrorLog /dev/null
<Directory "/var/www/html/4get">
RewriteEngine On
RewriteCond %{THE_REQUEST} ^\w+\ /(.*)\.php(\?.*)?\ HTTP/
RewriteRule ^ http://%{HTTP_HOST}/%1 [R=301]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule .* $0.php
Options FollowSymLinks
AllowOverride None
Require all granted
RewriteEngine On
RewriteCond %{THE_REQUEST} ^\w+\ /(.*)\.php(\?.*)?\ HTTP/
RewriteRule ^ http://%{HTTP_HOST}/%1 [R=301]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule .* $0.php
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
# deny access to private resources
<Directory "/var/www/html/4get/data">
Require all denied
<Files "*">
Require all denied
<Files "*">
Require all denied
</Files>
</Files>
</Directory>
LoadModule rewrite_module modules/mod_rewrite.so
@ -55,43 +55,33 @@ LoadModule alias_module modules/mod_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
<IfModule unixd_module>
User apache
Group apache
User apache
Group apache
</IfModule>
<Directory />
AllowOverride none
Require all denied
AllowOverride none
Require all denied
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
Require all denied
</Files>
<IfModule headers_module>
RequestHeader unset Proxy early
RequestHeader unset Proxy early
</IfModule>
<IfModule mime_module>
TypesConfig /etc/apache2/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
TypesConfig /etc/apache2/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule mime_magic_module>
MIMEMagicFile /etc/apache2/magic
MIMEMagicFile /etc/apache2/magic
</IfModule>
IncludeOptional /etc/apache2/conf.d/*.conf