logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.


Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: This was in a conf file that was specifically written for us
Author
atticusedwards



Joined: 03 Jul 2021
Posts: 1
Location: Clenchwarton

PostPosted: Mon 05 Jul '21 3:45    Post subject: This was in a conf file that was specifically written for us Reply with quote

This was in a conf file that was specifically written for us - which conf file should it go in or should I make a call to it in httpd.conf?

RewriteCond %{DOCUMENT_ROOT}/webcontent/%{ENV:EG_DOMAIN} -d
RewriteRule ^/(.*)$ /webcontent/%{ENV:EG_DOMAIN}/$1 [L]

<Directory C:/egranary2/egranary/webcontent/>
Options -Indexes
AllowOverride None
Require all granted
</Directory>
Back to top
tangent



Joined: 16 Aug 2020
Posts: 105
Location: UK

PostPosted: Tue 06 Jul '21 18:44    Post subject: Reply with quote

There's no hard and fast rule as to whether you include those configuration directives in your current httpd.conf file, or reference them in a separate conf file, with an include statement in httpd.conf. Depending on how your current configuration has been structured, it rather depends on your preference.

Since those rewrite directives are site specific, it might make sense to put them in a suitably named conf file, and include it.

If it's not already been done elsewhere in your configuration, you'll also need to load the mod_rewrite module, viz:
Code:
LoadModule rewrite_module modules/mod_rewrite.so

and enable the rewrite engine before this extra code.
Code:
RewriteEngine on
Back to top


Reply to topic   Topic: This was in a conf file that was specifically written for us View previous topic :: View next topic
Post new topic   Forum Index -> Apache