etch noip2 apache2 php5 mysql5 phpmyadmin (działa OK)
1.sytes.net 2.sytes.net localhost - takie stronki
1.localhost jak go debia dał -działa
1.sytes.net i 2.sytes.net przekierowywane sa do localhost a nie do www/1 i www/2 (z wpisu http://localhost/1 i 2 OK)
Kod: Zaznacz cały
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName 1.sytes.net
DocumentRoot /var/www/1/
<Directory />
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 /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
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>
2.co w plikach etc/hosts ;hosts.allow hosts.deny
Kod: Zaznacz cały
127.0.0.1 1.sytes.net
127.0.0.1 2.sytes.net
127.0.0.1 localhost.localdomain localhost localhost
127.0.1.1 localhost.localdomain debian
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
__
Wszystkieg dobrego z nowym rokiem.
Chętnie na GG 8384588 lub center.puh@jabber.wp.pl