Mam problem z dodaniem nowej subdomeny
plik /apache2/sites-available/default wygląda następująco:
Kod: Zaznacz cały
NameVirtualHost 91.121.59.175:80
<VirtualHost 91.121.59.175:80>
ServerName 91.121.59.175
ServerAdmin root@localhost
DocumentRoot /var/www/
</VirtualHost>
<VirtualHost 91.121.59.175:80>
ServerName [url]www.bans.klansod.pl:80[/url]
DocumentRoot /var/www/bans
ServerAlias bans.klansod.pl
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web14/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/bans
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/bans
</VirtualHost>
Kod: Zaznacz cały
$TTL 3600
$ORIGIN klansod.pl.
@ IN SOA r17831.ovh.net. starsky.klansod.pl. (
1 ; serial
1200 ; refresh 20 min
240 ; retry 4 min
3600000 ; expire
1209600 ; minimum
)
; DNSy utrzymujace domene (?)
@ IN NS r17831.ovh.net.
@ IN NS sdns1.ovh.net.
; Rekord MX
@ IN MX 10 mail.klansod.pl.
; Subdomeny utrzymywane przez ten DNS (?)
@ IN A 91.121.59.175
www IN A 91.121.59.175
mail IN A 91.121.59.175
ftp IN A 91.121.59.175
bans IN A 91.121.59.175
stats IN A 91.121.59.175