Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Virtual domens
View previous topic :: View next topic  
Author Message
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Wed Jul 15, 2009 1:00 pm    Post subject: Virtual domens Reply with quote

Hi,


What will you be yours recomindations of creation Virtual domens for server Apache? Probably you can give us some short escurse from your point of view.


Thanks beforehand

Vadim
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Wed Jul 15, 2009 5:32 pm    Post subject: Reply with quote

Well if you want to use virtual hosts just uncomment
Code:
#Include /etc/httpd/extra/httpd-vhosts.conf

from /etc/httpd/httpd.conf
and edit /etc/httpd/extra/httpd-vhosts.conf

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Thu Jul 16, 2009 3:44 pm    Post subject: Reply with quote

Hello,

We've made this folder-/var/www/test.ru, and set up a virtual domen in accordance with your recommendations.

However when I try to access this virtual domen? the server writes the following:

Forbidden
You don't have permission to access / on this server.

we tried to change various data of this folder but nothing worked out.
Can you help me to Solve this problem?

Best regards
vadim
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu Jul 16, 2009 7:11 pm    Post subject: Reply with quote

Have set the permissions on it?
"chown -R apache:apache /var/www/test.ru"

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Thu Jul 16, 2009 7:38 pm    Post subject: Reply with quote

Yes
We've made "chown -R apache:apache /var/www/test.ru"

File - httpd-vhosts.conf

<VirtualHost test.ru:80>
DocumentRoot /var/www/test.ru
ServerName test.ru
ErrorLog /var/log/httpd/test.ru-error_log
CustomLog /var/log/httpd/test.ru-access_log common
</VirtualHost>

However when I try to access this virtual domen, the server writes the following:

Forbidden
You don't have permission to access / on this server.

When I try to access to local IP (for example 192.168.0.188), the server writes the same message.

Can you help me to solve this problem?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu Jul 16, 2009 8:30 pm    Post subject: Reply with quote

try commenting in /etc/httpd/httpd.conf
Code:
<Directory />
    Options FollowSymLinks
    AllowOverride None
#   Order deny,allow
#  Deny from all
</Directory>


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
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
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional