httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Theo <t...@theoretic.com>
Subject [users@httpd] mod_rewrite to shorten URLs (problem)
Date Mon, 23 Dec 2002 02:08:09 GMT
Gary Turner <kk5st@sbcglobal.net> wrote:
> I'm not sure I even qualify as a newbie, yet.  So, I will take this as
> an opportunity for enlightenment.
> 
> Why don't you place WEB/TOPIC immediately under your doc root?  In
> addition, remove the bin/ from the immediate dir tree for security
> purposes.  Alias the CGI dir.
> 
> Is there a nontrivial (solving a vexing problem) reason for the rewrite?
> You haven't made that clear to my novice eyes.  Whether serious or
> simply an exercise for the class, I will follow along.  It looks
> interesting.

Hi. It's not a problem to explain  :)

The reason why placing the WEB directories directly under the doc root 
is because it is not actually the files in those WEB directories that I 
want to access with the web browser, it is the parsed result of them. 
This program is a Wiki, meaning it takes some simple markup like *text* 
and turns it into HTML (<b>text</b>) on-the-fly, saving the authors the 
trouble of having to know and type HTML. The Wiki scripts fetch the 
files in the WEB directories, parse them, and present them to the browser.

Next, I don't know exactly what you mean by aliasing the CGI dir. You 
mean an apache Alias? As in I have everything as 
http://test.theoretic.com/*** be redirected to 
http://test.theoretic.com/bin/view/***? Hmm... that might work as long 
as I can make exceptions for the /pub directory and other CGI scripts in 
/bin.

And I'm wanting to shorten the URL because I don't use anything under 
the /bin/view part, so it seems pointless to clutter up the URL with 
parts I don't use at all. It's a beautification matter.

-- 
     /\  Adam Theo, Age 23, Tallahassee FL USA
    //\\   Email & Jabber: theo@theoretic.com
   //  \\  Cell: (850) 567 1138
=//====\\=
//  ||  \\  Theoretic Solutions: http://www.theoretic.com
     ||         "Building Ideas by Bringing them Together"
     ||      Jabber Protocol: http://www.jabber.org
     ||         "The Next Generation Communications Protocol"
     ||  "A Free-Market Socialist Patriotic American Buddhist"


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message