Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need to config a Alias in Apache 2.4 and work how phpmyadmin works in my Ubuntu AWS server. I created a site-enable file and add the following lines for it

    Alias /admin1/ "/var/www/html/admin"
    <Directory "/var/www/html/admin">
        Order allow,deny
        Allow from all
    </Directory>

but when I hit /admin1 it redirect to the 404 page,

share|improve this question
    
Check Apache error logs and update in your question –  Rahul Patil Jun 9 at 7:33
    
I got this from access.log file 123.231.16.77 - - [09/Jun/2014:07:17:19 +0000] "GET /admin1/ HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/30.0.1599.114 Chrome/30.0.1599.114 Safari/537.36" 123.231.16.77 - - [09/Jun/2014:07:17:25 +0000] "GET /admin1 HTTP/1.1" 404 498 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/30.0.1599.114 Chrome/30.0.1599.114 Safari/537.36" –  doubleD Jun 9 at 8:38
    
have you restarted webserver after updating configuration ? but before restart do config test using apachectl -t –  Rahul Patil Jun 9 at 12:14
    
yes I did and i restart the server still its not good. and also after running apachectl -t I get Syntax OK message –  doubleD Jun 10 at 4:02
    
once check with Alias /admin1 "/var/www/html/admin", and also remove allow,deny order instead, you need to use Require all granted Ref httpd.apache.org/docs/2.4/upgrading.html –  Rahul Patil Jun 10 at 5:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.