Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 + VirtualHost
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
|Bot|
n00b
n00b


Joined: 24 Jan 2005
Posts: 54

PostPosted: Fri Apr 15, 2005 11:31 am    Post subject: apache2 + VirtualHost Reply with quote

никак немогу сделать :(

пробовал как в примере vhost.conf
через IP нехочет.....
################# IP-based Virtual Hosts
#<VirtualHost 65.75.181.24>
#SuExecUserGroup mastak users
#DocumentRoot /home/mastak/html/
#ServerName mastak.pp.ru
#ServerAlias www.mastak.pp.ru
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>

#<VirtualHost *:80>
#ServerAdmin bot@xsuid.info
#DocumentRoot /home/mastak/html
#ServerName mastac.pp.ru
#ServerAlias www.mastac.pp.ru
#ErrorLog logs/error_log
#ErrorDocument 404 http://www.n-tura.ru/errordoc/susanin404.html
# CustomLog /dev/null devnull
#</VirtualHost>


################# Named VirtualHosts
NameVirtualHost *:80
<VirtualHost 65.75.181.24>
ServerName www.mastak.pp.ru
ServerPath /mastak.pp.ru
DocumentRoot /home/mastak/html
</VirtualHost>


при последнем варианте пишет...

/etc/init.d/apache2 restart
* Stopping apache2...
[Fri Apr 15 11:21:43 2005] [warn] NameVirtualHost *:80 has no VirtualHosts [ ok ]
* Starting apache2...
[Fri Apr 15 11:21:45 2005] [warn] NameVirtualHost *:80 has no VirtualHosts [ ok ]


а в логах при всех вариантах одно .....

[Fri Apr 15 11:18:43 2005] [error] [client 213.247.224.1] client denied by server configuration: /home/mastak/html/

:(
Back to top
View user's profile Send private message
cerebrum
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2005
Posts: 77
Location: Russia

PostPosted: Fri Apr 15, 2005 11:56 am    Post subject: Reply with quote

кинь весь конф на cerebrum_06@yahoo.com - рассмотрю детали... не боись - своим вреда не делаю ибо сам админ туевой хучи веб серваков. http://orbitscripts.com - мой дом рАдной :-)
Back to top
View user's profile Send private message
|Bot|
n00b
n00b


Joined: 24 Jan 2005
Posts: 54

PostPosted: Fri Apr 15, 2005 12:01 pm    Post subject: Reply with quote

это и есть весь конф :)

он ведь там маленький )) vhost.conf ))
Back to top
View user's profile Send private message
|Bot|
n00b
n00b


Joined: 24 Jan 2005
Posts: 54

PostPosted: Fri Apr 15, 2005 12:05 pm    Post subject: Reply with quote

мдЫ ) вот гадость :)

перенес папку с сайтом в Документ Рутт )) атм создал другую )) и туда засунул и все заработало ))
почему в home/ нехотело непонятно :( смоды менял всетаки :()
Back to top
View user's profile Send private message
ZmiyGorinich
Guru
Guru


Joined: 27 Feb 2004
Posts: 369
Location: Zaporizhzhe, Ukraine

PostPosted: Fri Apr 15, 2005 12:21 pm    Post subject: Reply with quote

Скорее всего пользовательи группа под которым работает Apache не имел правл доступа в /home/mastak
_________________
Home: Athlon XP 2000+, ATI Radeon 9200 64Mb, 512Mb, hda:40Gb, hdb:120Gb, DVD-RW
Work : Duron 1.4, S3 ProSavage8 32Mb, 512Mb, hda:40Gb, CD-RW
Design, programming, hosting
Back to top
View user's profile Send private message
cerebrum
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2005
Posts: 77
Location: Russia

PostPosted: Fri Apr 15, 2005 12:46 pm    Post subject: Reply with quote

RI-VVM wrote:
Скорее всего пользовательи группа под которым работает Apache не имел правл доступа в /home/mastak


А это уже SuEXEC Group... etc... вобщем - "другая серия" :lol:
Back to top
View user's profile Send private message
|Bot|
n00b
n00b


Joined: 24 Jan 2005
Posts: 54

PostPosted: Fri Apr 15, 2005 12:55 pm    Post subject: Reply with quote

да меня и так устраивает )) потянет :)
Back to top
View user's profile Send private message
ba
l33t
l33t


Joined: 25 May 2003
Posts: 804

PostPosted: Mon Apr 18, 2005 7:10 am    Post subject: Re: apache2 + VirtualHost Reply with quote

|Bot| wrote:

NameVirtualHost *:80
<VirtualHost 65.75.181.24>
ServerName www.mastak.pp.ru
ServerPath /mastak.pp.ru
DocumentRoot /home/mastak/html
</VirtualHost>


при последнем варианте пишет...

/etc/init.d/apache2 restart
* Stopping apache2...
[Fri Apr 15 11:21:43 2005] [warn] NameVirtualHost *:80 has no VirtualHosts [ ok ]
* Starting apache2...
[Fri Apr 15 11:21:45 2005] [warn] NameVirtualHost *:80 has no VirtualHosts [ ok ]

Code:
<VirtualHost *:80>
, оно должно совпадать с одним из NameVirtualHost и еще убери ServerPath и добавь ServerAlias mastak.pp.ru

|Bot| wrote:

а в логах при всех вариантах одно .....

[Fri Apr 15 11:18:43 2005] [error] [client 213.247.224.1] client denied by server configuration: /home/mastak/html/

:(

могу предположить что надо добавить хотя бы
Code:

<Directory /home/mastak/html>
 Order allow,deny
 Allow from all
</Directory>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum