Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How to dynamically add

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache Rewrites Config  
Author Message
oliderid

External


Since: Dec 23, 2003
Posts: 1



(Msg. 1) Posted: Tue Dec 23, 2003 6:52 am
Post subject: How to dynamically add
Archived from groups: alt>apache>configuration (more info?)

Hi all,

I'm trying to find a way to add dynamically <Location> to apache
server. A Intranet web application needs to create/delete by itself
<Location>.

Right now I'm working with

Include afile.conf

In this file a script is automatically adding/deleting.
<Location /somewhere>
</Location>

And then it executes "apachectl graceful" to apply changes.

Is there any other way to do it?

Thanks and Merryr Christmas to all Wink

Olivier

 >> Stay informed about: How to dynamically add <Location&gt; 
Back to top
Login to vote
jring

External


Since: Jun 30, 2003
Posts: 154



(Msg. 2) Posted: Mon Dec 29, 2003 11:12 am
Post subject: Re: How to dynamically add [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I'm trying to find a way to add dynamically <Location> to apache
 > server. A Intranet web application needs to create/delete by itself
 > <Location>.
 >
 > Right now I'm working with
 >
 > Include afile.conf
 >
 > In this file a script is automatically adding/deleting.
 > <Location /somewhere>
 > </Location>
 >
 > And then it executes "apachectl graceful" to apply changes.

this sounds rather insecure if the script is called by the webserver
itself or something in its context like a cgi or php. also you'll
probably need the script to run under root to signal the apache master
process - ouch!

 > Is there any other way to do it?

depends. if the stuff you need to do can be done with mod_rewrite,
chances are you can put the changing part into a rewrite-map - those
are automagically refreshed at runtime when they change.

or if the stuff you want to have in our location container could also
reside in an .htaccess file, you could generate this instead, these
are also checked for each request.

joachim<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: How to dynamically add <Location&gt; 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Alias URL with off-server location - Hi. In the hope of not asking an FAQ, here's my question: On a server with Apache 1.3.27 (Linux 2.2) I want to create an ALIAS for a single URL. The source location is off-site (another URL) and should be downloaded and forwarded by Apache every time....

.htaccess with RewriteEngine & Location setting - Can I in .htaccess use Rewrite & Location settings? /Jacob

Why doesnt changing the document root location work? - Hi I am using webmin/apache We have a website setup and working. I want to change where the website is, so i went into webmin>apache>edit directives and changed the document root for my website from /usr/home/philssite to /usr/home/new sa...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]