Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
dns - variables
Results 1 to 2 of 2

Thread: dns - variables

  1. #1

    dns - variables

    hello all,

    can we have >1 domain pointing to the same application on the same server, the application interpreting the difference by a variable passed?

    e.g.
    220.xx.xx.xx <- ww.server.com

    ww.serviceA.com -> ww.server.com/serviceA (?id=serviceA)
    ww.serviceB.com -> ww.server.com/serviceB (?id=serviceB)

    application in server.com uses mod_rewrite to change /serviceX to ?id=serviceX

    When we register ww.serviceA.com, can we map it to a name server and pass a variable...?

  2. #2
    Quote Originally Posted by 4ever View Post
    hello all,

    can we have >1 domain pointing to the same application on the same server, the application interpreting the difference by a variable passed?

    e.g.
    220.xx.xx.xx <- ww.server.com

    ww.serviceA.com -> ww.server.com/serviceA (?id=serviceA)
    ww.serviceB.com -> ww.server.com/serviceB (?id=serviceB)

    application in server.com uses mod_rewrite to change /serviceX to ?id=serviceX

    When we register ww.serviceA.com, can we map it to a name server and pass a variable...?
    I'm not positive, but it sounds like you would be better served using Apache virtual hosting. Define a virtual host for both ww.serviceA.com and ww.serviceB.com. If you need to map the connections to something specific (ie. ?id=serviceA), then you could perhaps define a RewriteRule within each virtual host, which redirects / to something else.

Similar Threads

  1. Reading variables...
    By Gary Penner in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 02-25-2005, 10:35 PM
  2. PHP variables
    By kornp in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 05-15-2002, 03:29 PM
  3. Environment variables... where should they go?
    By krupa in forum Linux - General Topics
    Replies: 5
    Last Post: 11-27-2001, 03:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •