FAQ |
Kalender |
![]() |
#1 | ||
|
|||
Nykomling
|
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? |
||
![]() |
![]() |
![]() |
#2 | |||
|
||||
Har WN som tidsfördriv
|
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. |
|||
![]() |
![]() |
![]() |
#3 | ||
|
|||
Nykomling
|
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): Kod:
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> Kod:
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> |
||
![]() |
![]() |
Svara |
|
|