Mike,

For the most generalized application you could set up a DNS wildcard like *.
pct.edu and point it to the IP address of your web server. In your
httpd.conf you could catch *.pct.edu as a virtual host below where any
distinct pct.edu names have been defined. You'd point that virtual host to
your app where you could code whatever makes sense. You could use a
combination of apache redirects or dynamic queries depending on the
stability of the offering.

Alfred

On Wed, Apr 22, 2009 at 11:13, Mike Cunningham <mike.cunningham@xxxxxxx>wrote:

I have been searching for articles on this and can't find anything for
apache that would do want I want but can find some for IIS. What I would
like to do is do a url rewrite that would change xxx.pct.edu to
www.pct.edu/schools/'schoolname'/xxx.html<http://www.pct.edu/schools/%27schoolname%27/xxx.html>
<http://www.pct.edu/schools/'schoolname'/xxx.html<http://www.pct.edu/schools/%27schoolname%27/xxx.html>>
where xxx is a code for a major we offer and 'schoolname' is the name of
the school that offers that major. Majors come and go and we have a database
with our current majors. So the rewrite would lookup the xxx in a table
where I would get the school or even the full url for that major. Has anyone
ever een anything like this for Apache or is there a case where writing my
own module would required?
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.