I've got a dedicated server using whm/cpanel and there is a particular domain being hosted which contains a very elaborate .htaccess file which is full of mod_rewrite rules, among other things. I've been asked to try and get the contents of this .htaccess file into the httpd.conf (or some appropriate include file) to improve performance.
I've been reading this page and it's really confusing me:
cPanel - The Easy Apache Configuration System - Adding Custom Directives to httpd.conf
In the file usr/local/apache/conf/httpd.conf I see that there are two VirtualHost sections that appear to be relevant for my domain (which I'll call mydomain.com). The first listens on port 80 and the second is on 443. Seems to me that my apache directives in .htaccess would belong in this section. In the first section I see this:
In the second section I see this:Code:# To customize this VirtualHost use an include file at the following location # Include "/usr/local/apache/conf/userdata/std/2/mydomain/mydomain.com/*.conf"
The problem with both of these is that the directory /usr/local/apache/conf/userdata does not exist, much less the full path to either of those files.Code:# To customize this VirtualHost use an include file at the following location # Include "/usr/local/apache/conf/userdata/ssl/2/mydomain/mydomain.com/*.conf"
If anyone could advise me on where I should be putting these elaborate rewrite rules, I'd be very grateful. The documentation on this is really hard to follow.



LinkBack URL
About LinkBacks
Reply With Quote










