| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		vadim Member
 
  Joined: 16 Oct 2008 Posts: 40
 
  | 
		
			
				 Posted: Wed Jul 15, 2009 1:00 pm    Post subject: Virtual domens | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		gerasimos_h Site Admin
 
  Joined: 09 Aug 2007 Posts: 1757 Location: Greece
  | 
		
			
				 Posted: Wed Jul 15, 2009 5:32 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		vadim Member
 
  Joined: 16 Oct 2008 Posts: 40
 
  | 
		
			
				 Posted: Thu Jul 16, 2009 3:44 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		gerasimos_h Site Admin
 
  Joined: 09 Aug 2007 Posts: 1757 Location: Greece
  | 
		
			
				 Posted: Thu Jul 16, 2009 7:11 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		vadim Member
 
  Joined: 16 Oct 2008 Posts: 40
 
  | 
		
			
				 Posted: Thu Jul 16, 2009 7:38 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		gerasimos_h Site Admin
 
  Joined: 09 Aug 2007 Posts: 1757 Location: Greece
  | 
		
			
				 Posted: Thu Jul 16, 2009 8:30 pm    Post subject:  | 
				     | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		 |