Disable directory listing on apache; but access to individual files should be allowed

前端 未结 5 1948
夕颜
夕颜 2021-01-31 19:28

I do not want to use .htaccess. How should I change my Directory attributes?


   ServerName abc.com
   DocumentRoot /usr/share/uploads
           


        
5条回答
  •  青春惊慌失措
    2021-01-31 19:41

    The @Deepak solution did not worked for me. This one did:

    In the main apace configuration /etc/apache2/httpd.conf just add:

    
            Options FollowSymLinks
            AllowOverride All
    
    

    And it will work for all of you domains and subdomains. Without .htaccess file.

提交回复
热议问题