Считаете, что Ubuntu недостаточно дружелюбна к новичкам? Помогите создать новое Руководство для новичков!
0 Пользователей и 1 Гость просматривают эту тему.
fw.domen.ru fw
<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName domen.ru DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory>
cat /etc/apache2/sites-enabled/fw*
<VirtualHost *:80> ServerAdmin mail ServerName fw.domen.ru ServerAlias fw.domen.ru UseCanonicalName On DocumentRoot /var/sites/fw.domen.ru <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/sites/fw.domen.ru> # Options Indexes FollowSymLinks MultiViews AddDefaultCharset utf-8 Options Includes -Indexes FollowSymLinks AllowOverride None Order allow,deny allow from all </Directory>
это не полный....только половину указала так да в default ерунду написалок уберу servername
<VirtualHost *:80> ServerAdmin mail ServerName fw.domen.ru# ServerAlias fw.domen.ru UseCanonicalName On DocumentRoot /var/sites/fw.domen.ru <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/sites/fw.domen.ru> # Options Indexes FollowSymLinks MultiViews # AddDefaultCharset utf-8 Options Includes -Indexes FollowSymLinks AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/fw.domen.ru.error.log #Ошибки LogLevel warn CustomLog /var/log/apache2/access.log combined #ServerSignature Off </VirtualHost> ServerTokens Prod
VirtualHost configuration:wildcard NameVirtualHosts and _default_ servers:*:80 is a NameVirtualHost default server fw.domen.ru (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost fw.domen.ru (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost files.domen.ru (/etc/apache2/sites-enabled/files.domen.ru:1) port 80 namevhost fw.domen.ru (/etc/apache2/sites-enabled/fw.domen.ru:1)Syntax OK
<html><body><h1>It works!</h1><p>This is the default web page for this server.</p><p>The web server software is running but no content has been added, yet.</p></body></html>
/etc/apache2/mods-available/info.conf:# http://servername/server-info (requires that mod_info.c be loaded)./etc/apache2/mods-available/status.conf:# with the URL of http://servername/server-status/etc/apache2/sites-enabled/files.domen.ru: ServerName files.domen.ru/etc/apache2/sites-enabled/fw.domen.ru: ServerName fw.domen.ru/etc/apache2/sites-available/files.domen.ru: ServerName files.domen.ru/etc/apache2/sites-available/fw.domen.ru: ServerName fw.domen.ru/etc/apache2/mods-enabled/status.conf:# with the URL of http://servername/server-status
Страница сгенерирована за 0.022 секунд. Запросов: 21.