move project Пн 30 ноя 2026 23:43:04 MSK
This commit is contained in:
1 parent
ab8e98ebb0
commit
b8ee1e9bd1
26 files changed
+2139
-3
No files matched your search
@@ -0,0 +1,48 @@
|
||||
DefaultRuntimeDir /var/run/apache2
|
||||
PidFile /var/run/apache2/apache2.pid
|
||||
|
||||
Timeout 300
|
||||
KeepAlive On
|
||||
MaxKeepAliveRequests 100
|
||||
KeepAliveTimeout 5
|
||||
|
||||
User www-data
|
||||
Group www-data
|
||||
HostnameLookups Off
|
||||
|
||||
ErrorLog /var/log/apache2/apache2.error.log
|
||||
LogLevel warn
|
||||
|
||||
IncludeOptional mods-enabled/*.load
|
||||
IncludeOptional mods-enabled/*.conf
|
||||
|
||||
Include ports.conf
|
||||
DocumentRoot /var/www
|
||||
|
||||
<Directory /usr/share>
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory /bases/www>
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
AccessFileName .htaccess
|
||||
|
||||
<FilesMatch "^\.ht">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
|
||||
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %O" common
|
||||
LogFormat "%{Referer}i -> %U" referer
|
||||
LogFormat "%{User-agent}i" agent
|
||||
|
||||
IncludeOptional conf-enabled/*.conf
|
||||
IncludeOptional sites-enabled/*.conf
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# If you just change the port or add more ports here, you will likely also
|
||||
# have to change the VirtualHost statement in
|
||||
# /etc/apache2/sites-enabled/000-default.conf
|
||||
|
||||
Listen 80
|
||||
Listen 8080
|
||||
|
||||
#<IfModule ssl_module>
|
||||
# Listen 443
|
||||
#</IfModule>
|
||||
|
||||
#<IfModule mod_gnutls.c>
|
||||
# Listen 443
|
||||
#</IfModule>
|
||||
@@ -0,0 +1,16 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName mydomain.ru
|
||||
ServerAlias mydomain.ru
|
||||
ServerAdmin admin@mydomain.ru
|
||||
DocumentRoot /var/www/site
|
||||
<Directory /var/www/site>
|
||||
Options -Indexes +FollowSymLinks +MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
<FilesMatch \.php$>
|
||||
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
||||
</FilesMatch>
|
||||
ErrorLog ${APACHE_LOG_DIR}/site-error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/site-access.log combined
|
||||
</VirtualHost>
|
||||
@@ -0,0 +1,9 @@
|
||||
<VirtualHost *:8080>
|
||||
ServerName subdomen1.mydomain.ru
|
||||
ServerAlias subdomen1.mydomain.ru
|
||||
DocumentRoot /var/www/subdomen1/
|
||||
RewriteEngine On
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
|
||||
ErrorLog /var/log/apache2-subdomen1/error.log
|
||||
CustomLog /var/log/apache2-subdomen1/access.log combined
|
||||
</VirtualHost>
|
||||
@@ -0,0 +1,9 @@
|
||||
<VirtualHost *:8080>
|
||||
ServerName subdomen2.mydomain.ru
|
||||
ServerAlias subdomen2.mydomain.ru
|
||||
DocumentRoot /var/www/subdomen2/
|
||||
RewriteEngine On
|
||||
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
|
||||
ErrorLog /var/log/apache2-subdomen2/error.log
|
||||
CustomLog /var/log/apache2-subdomen2/access.log combined
|
||||
</VirtualHost>
|
||||
Reference in new issue
Block a user