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

mod rewrite module

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Logging and MySQL  
Author Message
klomper

External


Since: Nov 20, 2003
Posts: 1



(Msg. 1) Posted: Thu Nov 20, 2003 11:52 pm
Post subject: mod rewrite module
Archived from groups: alt>apache>configuration (more info?)

I need assistance with the syntax for a redirect I need to have happen in
apache. Here is the situation:

1. Currently users have a dynamically created website. The url is:
http://www.domain-name.com/members/USERNAME

Where USERNAME is their username that is in the software's database.

The issue is, that we are switching software packages and they will have a
different URL for their personal website.

2. The new URL for them will be:
http://USERNAME.domain-name.com

I need to figure out the syntax to put in the apache.conf with use of the
mod rewrite module I assume.

Please help!!

Jeremy Klomp
klomper.TakeThisOut@charter.net

 >> Stay informed about: mod rewrite module 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Fri Nov 21, 2003 9:52 am
Post subject: Re: mod rewrite module [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jeremy <klomper DeleteThis @charter.net> wrote:
 > 1. Currently users have a dynamically created website. The url is:
<font color=purple> > <a style='text-decoration: underline;' href="http://www.domain-name.com/members/USERNAME</font" target="_blank">http://www.domain-name.com/members/USERNAME</font</a>>
 > 2. The new URL for them will be:
<font color=purple> > <a style='text-decoration: underline;' href="http://USERNAME.domain-name.com</font" target="_blank">http://USERNAME.domain-name.com</font</a>>

Hemm... I'm a little lost. You want that they enter the URL as in (1)
and they get (2) or the other way around? Or what?

And why you need this kind of rewrite? Just use the mod_vhost to
define dynamic VHost:

VirtualDocumentRoot /where/are/your/user/%DOMAIN

See <a style='text-decoration: underline;' href="http://httpd.apache.org/docs/vhosts/mass.html" target="_blank">http://httpd.apache.org/docs/vhosts/mass.html</a> for other info and
examples in using also mod_rewrite for the same.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: mod rewrite module 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
using the perl module - Hi; I have Apache 2.0 up and running after a bit of work. When I went to configure the CGI interface I ran into some problems. When I created a simple Perl script it would not run using the line #!/usr/bin/perl The problem was that the Apache 2.0 did not...

Converting a module from 1.3 to 2.0? Help? - Hello, I was wondering if someone feels like converting a module from Apache 1.3 to 2.0... It's a VERY simple module, I understand all of it easily exept the API thingys... Otherwise, could someone give me a nice unofficial tutorial on Apache 2 module..

APACHE and PHP module - Hi , I got my multiple sites running now and I found I need to use PHP config directives in apache ..So I set up PHP to run as a module last night and got it to work ( I think !) .. How can I test PHP to see if its in the new configuration ?.So far I can...

Apache VHOST Module - Hi Group, I'm working on a ldap-based vhost modul for apache 2x. Searching for API documentation i've found many well written and helpful stuff. But I'm looking for this mysql vhost modul, to take a look at the sources. Someone know where to find it? I...

Using external lib in a (DSO) module with apxs - I am building a module that uses externa libs using apxs with Apache. 2.0.48 on Solaris 8 using gcc 2.95 I can compile and install the module however I cannot get httpd to load that module. I get the following error. Cannot load..
   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 ]