Portál AbcLinuxu, 6. listopadu 2025 09:50
(VirtualHost *:80)
ServerAdmin webmaster@localhost
VirtualDocumentRoot /var/web-sites/%2+/%1/
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
(Directory "/usr/share/doc/")
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
(/Directory)
(/VirtualHost)
(VirtualHost *:80)
ServerAdmin webmaster@localhost
VirtualDocumentRoot /var/web-sites/%2+/%1/
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)$
RewriteRule (.*) http://www.%1.%2$1 [QSA,L]
Alias /doc/ "/usr/share/doc/"
(Directory "/usr/share/doc/")
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
(/Directory)
(/VirtualHost)
>
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.