Hinnavaatlus
:: Foorum
:: Uudised
:: Ärifoorumid
:: HV F1 ennustusvõistlus
:: Pangalink
:: Telekavad
:: HV toote otsing
|
|
autor |
|
ak47marx
HV vaatleja
liitunud: 15.02.2006
|
23.06.2012 11:33:32
Zone.ee VPS Ubuntu-11.04, mure squirrelmaili seadistamisega ja apache www. suunamisega. |
|
|
Sai siis tellitud zoneilt vps aga kuna serveri haldamisega eelnev kogemus puudub, siis ei pidanud kaua probleeme ootama
Kaks probleemi, mis on minujaoks müstika.
1. Pärast ispconfig 3 paigaldamist installisin squirrelmaili aga e-kirja saates viskab järgneva errori http://imageshack.us/photo/my-images/845/webmailo.png/ ning mailid ei tule ka sisse. Kas keegi viitsib mulle öelda need sammud mida pean tegema?
EDIT:
Mure 1 leidsin lõpuks lahenduse:
/etc/init.d/sendmail stop
/etc/init.d/postfix start
Aga mure 2 endiselt jõus.
2. domain.com suunamine www.domain.com aadressile. Kui panen www.aadress.com siis on kõik ok aga kui ilma www-ta, siis suunab default serveri lehele "It works etc..."
dns näeb välja selline http://imageshack.us/photo/my-images/850/90127581.png/ (hetkel ainult üks domeen). Kas siin on midagi valesti või üleliigset?
Proovisin kõiki lahendusi mis google mulle andis aga ikka ei saanud suunamist tööle.
Oleksin abi eest tänulik.
head jaani!
|
|
Kommentaarid: 12 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
12 |
|
tagasi üles |
|
 |
airm
HV Guru
liitunud: 26.02.2003
|
23.06.2012 13:59:31
|
|
|
mitte dns kirjed ei ole probleemi allikas, vaid apache configa pead siin tegelema.
|
|
Kommentaarid: 56 loe/lisa |
Kasutajad arvavad: |
   |
:: |
2 :: |
1 :: |
50 |
|
tagasi üles |
|
 |
ak47marx
HV vaatleja
liitunud: 15.02.2006
|
23.06.2012 15:27:15
|
|
|
Tänud vastuse eest aga segadus ongi mul, et just milliseid faile muuta. Zone-il pole päris täpselt sama ehitus nagu guugeldades õpetused välja tulevad.
Kas saan õigesti aru, et tuleb muuta domain.com.vhost faili?
Hetkel selle (/etc/apache2/sites-available/domain.com.vhost) sisu selline
<Directory /var/www/domain.com>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/domain.com/web
ServerName domain.com
ServerAlias www.domain.com
ServerAdmin webmaster@domain.com
ErrorLog /var/log/ispconfig/httpd/domain.com/error.log
Alias /error/ "/var/www/domain.com/web/error/"
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 502 /error/502.html
ErrorDocument 503 /error/503.html
<IfModule mod_ssl.c>
</IfModule>
<Directory /var/www/domain.com/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web3/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# suexec enabled
<IfModule mod_suexec.c>
SuexecUserGroup web3 client1
</IfModule>
# Clear PHP settings of this website
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
# php as fast-cgi enabled
# For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
<IfModule mod_fcgid.c>
IdleTimeout 300
ProcessLifeTime 3600
# MaxProcessCount 1000
DefaultMinClassProcessCount 0
DefaultMaxClassProcessCount 100
IPCConnectTimeout 3
IPCCommTimeout 360
BusyTimeout 300
</IfModule>
<Directory /var/www/domain.com/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web3/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web3/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web3/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# add support for apache mpm_itk
<IfModule mpm_itk_module>
AssignUserId web3 client1
</IfModule>
<IfModule mod_dav_fs.c>
# Do not execute PHP files in webdav directory
<Directory /var/www/clients/client1/web3/webdav>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
</Directory>
DavLockDB /var/www/clients/client1/web3/tmp/DavLock
# DO NOT REMOVE THE COMMENTS!
# IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
# WEBDAV BEGIN
# WEBDAV END
</IfModule>
</VirtualHost>
Või olen täitsa vales suunas?
|
|
Kommentaarid: 12 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
12 |
|
tagasi üles |
|
 |
airm
HV Guru
liitunud: 26.02.2003
|
23.06.2012 16:00:56
|
|
|
Õige koht on jah.
Seal saad kirjeldada, et kui päring tuleb www.domain.ee, siis on selles kataloogis
kui domain.ee, siis ka selles kataloogis.
Umbes sedasi:
-----------------------------------
NameVirtualHost *:80
<VirtualHost *:80>
ServerName domain.ee
ServerAdmin webmaster@domain.ee
DocumentRoot /home/www.domain.ee
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain.ee
ServerAdmin webmaster@domain.ee
DocumentRoot /home/www.domain.ee
</VirtualHost>
|
|
Kommentaarid: 56 loe/lisa |
Kasutajad arvavad: |
   |
:: |
2 :: |
1 :: |
50 |
|
tagasi üles |
|
 |
Dogbert
HV Guru

liitunud: 03.05.2004
|
23.06.2012 19:00:20
|
|
|
Kui tahad nii www.domain.ee kui domain.ee pealt sama lehekülge näidata, siis kõigepealt seadista olemasolev fail oma vajadustele vastavalt. Kui tahad, et www.domain.ee jääks n-ö peamiseks aadressiks, siis tee seadistus www.domain.ee-le. Kui see on valmis ja töötab, siis lisa selle ette (või järele) virtualhost domain.ee-le, mille ainsaks sisuks oleks püsiv ümbersuunamine www.domain.ee-le.
airm pakutud näidist silmas pidades:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName domain.ee
ServerAdmin webmaster@domain.ee
Redirect permanent / http://www.domain.ee
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain.ee
ServerAdmin webmaster@domain.ee
DocumentRoot /home/www.domain.ee
...
</VirtualHost>
_________________ Tee inimesele lõke ja tal on soe üheks päevaks, pista ta põlema ja tal on soe elu lõpuni. (Terry Pratchett)
e.k spikker: muhk on kumer, lohk on nõgus. |
|
Kommentaarid: 33 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
32 |
|
tagasi üles |
|
 |
ak47marx
HV vaatleja
liitunud: 15.02.2006
|
24.06.2012 13:33:39
|
|
|
Suured tänud mõlemale vastuse eest. Tegin sellise aga ikka sama teema. www töötab aga ilma mitte..
Saate korra vaadata, kas siin on midagi valesti?
<Directory /var/www/domain.com>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/domain.com/web
ServerName domain.com
ServerAdmin webmaster@domain.com
Redirect permanent / http://www.domain.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/domain.com/web
ServerName www.domain.com
ServerAdmin webmaster@domain.com
ErrorLog /var/log/ispconfig/httpd/domain.com/error.log
Alias /error/ "/var/www/domain.com/web/error/"
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 502 /error/502.html
ErrorDocument 503 /error/503.html
<IfModule mod_ssl.c>
</IfModule>
<Directory /var/www/domain.com/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web3/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# suexec enabled
<IfModule mod_suexec.c>
SuexecUserGroup web3 client1
</IfModule>
# Clear PHP settings of this website
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
# php as fast-cgi enabled
# For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
<IfModule mod_fcgid.c>
IdleTimeout 300
ProcessLifeTime 3600
# MaxProcessCount 1000
DefaultMinClassProcessCount 0
DefaultMaxClassProcessCount 100
IPCConnectTimeout 3
IPCCommTimeout 360
BusyTimeout 300
</IfModule>
<Directory /var/www/domain.com/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web3/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web3/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web3/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# add support for apache mpm_itk
<IfModule mpm_itk_module>
AssignUserId web3 client1
</IfModule>
<IfModule mod_dav_fs.c>
# Do not execute PHP files in webdav directory
<Directory /var/www/clients/client1/web3/webdav>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
</Directory>
DavLockDB /var/www/clients/client1/web3/tmp/DavLock
# DO NOT REMOVE THE COMMENTS!
# IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
# WEBDAV BEGIN
# WEBDAV END
</IfModule>
</VirtualHost>
|
|
Kommentaarid: 12 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
12 |
|
tagasi üles |
|
 |
airm
HV Guru
liitunud: 26.02.2003
|
24.06.2012 16:50:05
|
|
|
harjuta ennast logisid vaatama.
http logid:
/var/log/http <- kuskil seal
|
|
Kommentaarid: 56 loe/lisa |
Kasutajad arvavad: |
   |
:: |
2 :: |
1 :: |
50 |
|
tagasi üles |
|
 |
Dogbert
HV Guru

liitunud: 03.05.2004
|
24.06.2012 17:24:11
|
|
|
ak47marx kirjutas: |
<Directory /var/www/domain.com>
AllowOverride None
Order Deny,Allow
Deny from all
</Directory> |
|
Milleks see kataloog siin kõige ees on defineeritud? Väljaspool virtualhosti ma ei kujuta hästi ette, mida see tegema peaks. Ma pole mingi Apache spets ka muidugi. Pealegi on see "deny from all" keelu all ja mitte ühtegi aaderssi pole lubatud ligi sinna. Ei näe sel mõtet ja on potentsiaalne oht, et see teeb midagi ennustamatut...
tsitaat: |
<VirtualHost *:80>
DocumentRoot /var/www/domain.com/web
ServerName domain.com
ServerAdmin webmaster@domain.com
Redirect permanent / http://www.domain.com
</VirtualHost> |
|
Selles virtualhostis ei ole vaja juurikat defineerida, redirect peaks töötama selleta. St et rida
DocumentRoot /var/www/domain.com/web
on liigne. Nüüd teine virtualhost.
tsitaat: |
<VirtualHost *:80>
DocumentRoot /var/www/domain.com/web
ServerName www.domain.com
ServerAdmin webmaster@domain.com
ErrorLog /var/log/ispconfig/httpd/domain.com/error.log
Alias /error/ "/var/www/domain.com/web/error/"
ErrorDocument 400 /error/400.html
ErrorDocument 401 /error/401.html
ErrorDocument 403 /error/403.html
ErrorDocument 404 /error/404.html
ErrorDocument 405 /error/405.html
ErrorDocument 500 /error/500.html
ErrorDocument 502 /error/502.html
ErrorDocument 503 /error/503.html
<IfModule mod_ssl.c>
</IfModule>
<Directory /var/www/domain.com/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web3/web>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# suexec enabled
<IfModule mod_suexec.c>
SuexecUserGroup web3 client1
</IfModule>
# Clear PHP settings of this website
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
# php as fast-cgi enabled
# For config options see: http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
<IfModule mod_fcgid.c>
IdleTimeout 300
ProcessLifeTime 3600
# MaxProcessCount 1000
DefaultMinClassProcessCount 0
DefaultMaxClassProcessCount 100
IPCConnectTimeout 3
IPCCommTimeout 360
BusyTimeout 300
</IfModule>
<Directory /var/www/domain.com/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web3/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/clients/client1/web3/web>
AddHandler fcgid-script .php .php3 .php4 .php5
FCGIWrapper /var/www/php-fcgi-scripts/web3/.php-fcgi-starter .php
Options +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# add support for apache mpm_itk
<IfModule mpm_itk_module>
AssignUserId web3 client1
</IfModule>
<IfModule mod_dav_fs.c>
# Do not execute PHP files in webdav directory
<Directory /var/www/clients/client1/web3/webdav>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
</Directory>
DavLockDB /var/www/clients/client1/web3/tmp/DavLock
# DO NOT REMOVE THE COMMENTS!
# IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
# WEBDAV BEGIN
# WEBDAV END
</IfModule>
</VirtualHost> |
|
Ei näe selles virtualhostis vigu olevat. Kas siin kõike defineeritut ka päriselt vaja on, sõltub sellest veebist muidugi. Hostitav lehekülg paistab asuvat kataloogis /var/www/domain.com/web. Kas ja milleks on vaja kataloogi /var/www/clients/client1/web3/web, peaks sa ise teadma... ja kas sul tõepoolest cgi skripte ka vaja on jooksutada seal ning neile suvaliselt aadressilt ligipääsu lubada samuti.
Vealogi on alati abiks, nagu juba öeldi. Teise virtualhosti vealogi asukoht on siin konfis defineeritud kui /var/log/ispconfig/httpd/domain.com/error.log
Apache enda logid on Debianilaadsetel /var/log/apache2 kataloogis.
_________________ Tee inimesele lõke ja tal on soe üheks päevaks, pista ta põlema ja tal on soe elu lõpuni. (Terry Pratchett)
e.k spikker: muhk on kumer, lohk on nõgus. |
|
Kommentaarid: 33 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
32 |
|
tagasi üles |
|
 |
Kilpa
HV kasutaja

liitunud: 10.06.2010
|
26.06.2012 23:06:19
|
|
|
Mul on "site" nii seadistatud ja töötab:
|
|
Kommentaarid: 25 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
0 :: |
24 |
|
tagasi üles |
|
 |
|