Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
66fded95ec
commit
f401e78edd
@ -6,27 +6,27 @@ ServerName localhost
|
|||||||
|
|
||||||
DocumentRoot "/var/www/html/4get"
|
DocumentRoot "/var/www/html/4get"
|
||||||
|
|
||||||
LogLevel warn
|
LogLevel error
|
||||||
CustomLog /dev/null common
|
CustomLog /dev/null common
|
||||||
ErrorLog /dev/null
|
ErrorLog /dev/null
|
||||||
|
|
||||||
<Directory "/var/www/html/4get">
|
<Directory "/var/www/html/4get">
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{THE_REQUEST} ^\w+\ /(.*)\.php(\?.*)?\ HTTP/
|
RewriteCond %{THE_REQUEST} ^\w+\ /(.*)\.php(\?.*)?\ HTTP/
|
||||||
RewriteRule ^ http://%{HTTP_HOST}/%1 [R=301]
|
RewriteRule ^ http://%{HTTP_HOST}/%1 [R=301]
|
||||||
RewriteCond %{REQUEST_FILENAME}.php -f
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
||||||
RewriteRule .* $0.php
|
RewriteRule .* $0.php
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# deny access to private resources
|
# deny access to private resources
|
||||||
<Directory "/var/www/html/4get/data">
|
<Directory "/var/www/html/4get/data">
|
||||||
|
Require all denied
|
||||||
|
<Files "*">
|
||||||
Require all denied
|
Require all denied
|
||||||
<Files "*">
|
</Files>
|
||||||
Require all denied
|
|
||||||
</Files>
|
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
LoadModule rewrite_module modules/mod_rewrite.so
|
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
|
LoadModule negotiation_module modules/mod_negotiation.so
|
||||||
|
|
||||||
<IfModule unixd_module>
|
<IfModule unixd_module>
|
||||||
User apache
|
User apache
|
||||||
Group apache
|
Group apache
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Directory />
|
<Directory />
|
||||||
AllowOverride none
|
AllowOverride none
|
||||||
Require all denied
|
Require all denied
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<IfModule dir_module>
|
<IfModule dir_module>
|
||||||
DirectoryIndex index.html
|
DirectoryIndex index.html
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<Files ".ht*">
|
<Files ".ht*">
|
||||||
Require all denied
|
Require all denied
|
||||||
</Files>
|
</Files>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<IfModule headers_module>
|
<IfModule headers_module>
|
||||||
RequestHeader unset Proxy early
|
RequestHeader unset Proxy early
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mime_module>
|
<IfModule mime_module>
|
||||||
TypesConfig /etc/apache2/mime.types
|
TypesConfig /etc/apache2/mime.types
|
||||||
AddType application/x-compress .Z
|
AddType application/x-compress .Z
|
||||||
AddType application/x-gzip .gz .tgz
|
AddType application/x-gzip .gz .tgz
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mime_magic_module>
|
<IfModule mime_magic_module>
|
||||||
MIMEMagicFile /etc/apache2/magic
|
MIMEMagicFile /etc/apache2/magic
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
IncludeOptional /etc/apache2/conf.d/*.conf
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user