DNS resloving - Fail :(

Visa första olästa
Ämnesverktyg
Visa huvudforum
Visningsalternativ
Oläst 2010-07-23, 11:33 #1
EvanionEvanion är inte uppkopplad
Nykomling
Reg.datum: Apr 2010
Inlägg: 31
Standard DNS resloving - Fail :(

Av någon anledning så reslovar inte min server inkommande domän.

Tex så går pockettech.se och serverstar.snowpeak.se till samma sida (dvs /var/www/) ist för respektive vhost (/home/<user>/public_html/)

Servern kör ubuntu 10.04 och config görs via Virtualmin GPL.

någon ide på vad som kan vara felinställt?
Evanion är inte uppkopplad
Oläst 2010-07-23, 12:48 #2
crazzycrazzy är inte uppkopplad
Har WN som tidsfördriv
crazzys avatar
Reg.datum: Aug 2007
Inlägg: 1 089
Att adresserna går till samma mapp har inget med DNS att göra alls. Det är konfigurationen av din webbserver. Ta en titt här: http://httpd.apache.org/docs/2.0/vhosts/

Huruvida det går att göra via kontrollpanelen nu nämner vet jag inte eftersom jag aldrig använt den.
crazzy är inte uppkopplad
Oläst 2010-07-23, 16:00 #3
EvanionEvanion är inte uppkopplad
Nykomling
Reg.datum: Apr 2010
Inlägg: 31
jo jag hade en aning på något sånt ...
Så vitt jag förstår så är detta templaten för dittDomän.se (Directives and settings for new websites):
CODE
ServerName ${DOM}
ServerAlias www.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog /var/log/virtualmin/${DOM}_error_log
CustomLog /var/log/virtualmin/${DOM}_access_log combined
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory ${HOME}/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory ${HOME}/cgi-bin>
allow from all
</Directory>


och detta är vad domänen får (/etc/apache2/sites-available/pockettech.se.conf):

CODE
SuexecUserGroup "#1002" "#1002"
ServerName pockettech.se
ServerAlias www.pockettech.se
ServerAlias webmail.pockettech.se
ServerAlias admin.pockettech.se
DocumentRoot /home/pockettech/public_html
ErrorLog /var/log/virtualmin/pockettech.se_error_log
CustomLog /var/log/virtualmin/pockettech.se_access_log combined
ScriptAlias /cgi-bin/ /home/pockettech/cgi-bin/
ScriptAlias /awstats /home/pockettech/cgi-bin
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/pockettech/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/pockettech/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/pockettech/fcgi-bin/php5.fcgi .php5
</Directory>
<Directory /home/pockettech/cgi-bin>
allow from all
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.pockettech.se
RewriteRule ^(.*) https://pockettech.se:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.pockettech.se
RewriteRule ^(.*) https://pockettech.se:9999/ [R]
RemoveHandler .php
RemoveHandler .php5
IPCCommTimeout 31
<Files awstats.pl>
AuthName "pockettech.se statistics"
AuthType Basic
AuthUserFile /home/pockettech/.awstats-htpasswd
require valid-user
</Files>
Alias /dav /home/pockettech/public_html
Alias /pipermail /var/lib/mailman/archives/public
<Location /dav>
DAV On
AuthType Basic
AuthName pockettech.se
AuthUserFile /home/pockettech/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php5
RewriteEngine off
</Location>
RedirectMatch /cgi-bin/mailman/([^/\.]*)(.cgi)?(.*) https://pockettech.se:9999/virtualmin-mailman/unauthenticated/$1.cgi$3
RedirectMatch /mailman/([^/\.]*)(.cgi)?(.*) https://pockettech.se:9999/virtualmin-mailman/unauthenticated/$1.cgi$3
<Location /svn>
DAV svn
SVNParentPath /home/pockettech/svn
AuthType Basic
AuthName pockettech.se
AuthUserFile /home/pockettech/etc/svn.basic.passwd
Require valid-user
AuthzSVNAccessFile /home/pockettech/etc/svn-access.conf
Satisfy Any
RewriteEngine off
</Location>

Evanion är inte uppkopplad
Taggar
apache, dns, virtual host, virtualmin
Aktiva användare som för närvarande tittar på det här ämnet: 0 (0 medlemmar och 0 gäster)