[users@httpd] Getting the configuration right no .htaccess files maybe all in httpd.conf file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sep 6, 2006, at 2:57 PM, Joshua Slive wrote:

Security, my URL SEO to function and the Apple code from the htaccess
file all put where they belong so they function.

This is too vague to answer.



This is the start of my .htaccess file in both Admin and Documents.

AllowOverride AuthConfig
AuthUserFile lhsmarkets.com/Library/WebServer/Documents/.htpasswd
AuthGroupFile /dev/null
AuthName "Password Protected Area"
AuthType Basic


This is the URL SEO code that needs to be in the .htaccess file unless you say to put it in the httpd.conf file.

Options +FollowSymLinks
RewriteEngine On
RewriteBase /Documents/
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&% {QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&% {QUERY_STRING}

This is the Apple required code for the .htaccess file.

<limit GET POST>
require valid-user
</limit>

<Files "rsrc">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

<Directory   "lhsmarkets.com/Library/WebServer/Documents">
    Order allow,deny
    Deny from all
    Satisfy All
</Directory>


Can I put all this in the http.conf file and remove the two .htaccess files?

What is your recommendation.

Leon



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux