HI, all i have very strange problem. I config my Apache and my domain.com work perfect (DocRoot /home/mydomain/public_html). Then i create new subdomain -> mydomain.com/test (DocRoot /home/mydomain/public_html/test/public) ... and when i try to browse mydomain.com/test .... i have 403 forbiden error, but mydomain.com/test/public is OK. My http.conf is : <VirtualHost x.x.x.x:80> DocumentRoot /home/mydomain/public_html ServerName mydomain.com DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/mydomain/public_html> Options +Indexes FollowSymLinks +ExecCGI AllowOverride All Order Deny,Allow Allow from all </Directory> </VirtualHost> <VirtualHost x.x.x.x:80> DocumentRoot /home/mydomain/public_html/test/public ServerName mydomain.com/test DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/mydomain/public_html/test/public> Options +Indexes FollowSymLinks +ExecCGI AllowOverride All Order Deny,Allow Allow from all </Directory> </VirtualHost> I try add Options configs ,(Indexes) ... and all wrote in forums ... no luck Please tell me where is the problem . I want to browse mydomain.com/test NOT mydomain.com/test/public
First Of all, mydomain.com/test is not a subdomain. It is a subdirectory. Go thorugh Your Cpanel and Check whether There are any Redirection Rules Set, Or Check Is there any Restrictions too. Also Look for the chmod is set to be read (Am not sure, But do try these.) Thanks.
Thanks for reply There are no Redirects and Restrictions checked (default values). chmod is set to be read (755 -folders, 644 - files). In my subdirectory /home/mydomain/public_html/test/ i place my Zend project (public,app,lib), and i put my index.php file in public folder. Is that the problem? I have httaccess file in public folder: Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule !\.(htm|html|txt|swf|js|ico|gif|jpg|png|css|php|xml)$ index.php Thanks
checkout http://mysql-apache-php.com page and somewhere itts written about apache. i think you need to put server root.
Hi All, i try to make an alias, but still not work. and how to put server root - > i can't find that in link http://mysql-apache-php.com any other ideas