best apache config for joomla site

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

 



apache-2.0.0.1
joomla-1.0.12


So I want to keep the joomla directory in a path that has nothing to do with the site's DocumentRoot. I am assuming this brings more security. But what I'd like to do is take out the need for joomla to be nested in the http://www.site.com/main URL

I'd like joomla to appear without 'main' in the URL - like http://www.site.com/

how would I configure my httpd.conf file to allow this behavior.



---- config ----

       DocumentRoot /a/www/data/www.site.com

       Alias /main /a/www/joomla/

       RewriteEngine on
       RewriteCond %{REQUEST_METHOD} !^(GET|POST|HEAD)$
       RewriteRule .* - [F]

       Redirect permanent /index.html http://www.site.com/main

---- config ----



---------------------------------------------------------------------
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