воскресенье, 29 января 2012 г.

apache virtual host

sudo gedit /etc/apache2/sites-available/default
...

<#VirtualHost 127.0.0.2:80>
ServerAdmin webmaster@localhost
        ServerName a.local
        ServerAlias a.local

DocumentRoot /var/www/t/a
<#Directory /var/www/t/a>
Options FollowSymLinks
AllowOverride None
<#/Directory>
<#Directory /var/www/t/a>
Options Indexes FollowSymLinks MultiViews
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 ${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>

...

sudo /etc/init.d/apache2 restart

gedit /var/www/t/a/index.html
...

hosts
127.0.0.2 top.mail.ru

Комментариев нет:

Отправить комментарий

h265.sh

#!/bin/bash file="../mp4" if [ -d $file ]; then         echo "  Директория существует :-) "         for i in *.mp4; do f...