Strange URL problem

Discussion in 'Site & Server Administration' started by scarpa, May 14, 2010.

  1. #1
    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
     
    scarpa, May 14, 2010 IP
  2. extremephp

    extremephp Peon

    Messages:
    1,290
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    extremephp, May 14, 2010 IP
  3. scarpa

    scarpa Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    scarpa, May 15, 2010 IP
  4. aroel

    aroel Well-Known Member

    Messages:
    154
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #4
    make an alias

     
    aroel, May 19, 2010 IP
  5. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #5
    olddocks, May 21, 2010 IP
  6. fishmania

    fishmania Peon

    Messages:
    388
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    what about contacting your host and ask them for support?
     
    fishmania, May 22, 2010 IP
  7. scarpa

    scarpa Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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 :(
     
    scarpa, May 28, 2010 IP