1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

url rewriting on different domains, subdomains, and auto add DNS subdomain

Discussion in 'Plesk for Linux - 8.x and Older' started by NothingHere, Aug 10, 2007.

  1. NothingHere

    NothingHere Guest

    0
     
    Hi,

    In the first case :

    I have domainC.com.
    I want to create automatically subdomainX.domainC.com and subdomainY.domainC.com (subdomainZ, subdomain999... etc ...).

    How automatically create a DNS entry on my plesk-bind-dns-server ? where data is storend in plesk bind/DNS ?

    Have you do that with php/perl/other ? How ?


    In the second case :

    I have two domains : domainA.com and domainB.com.

    domainA and domainB are on the same server.

    index.html is in www.domainA.com/indexes/index.html and subdomainX.domainA.com and subdomainY.domainB.com points to this index file.

    www.domainA.com/admin/ and www.domainB.com/admin/ will be the same directory (located at www.domainA.com/admin/ ).


    I think it's possible to do that with URL Rewriting.

    Anyone had do that, or can copy/paste his url rewriting conf ?

    It's possible to do that on two different domains ? or only subdomains of a domain ??

    I need your help / experience / ...

    Thanks !
     
  2. NothingHere

    NothingHere Guest

    0
     
    No one know how automatically create a DNS entry on my plesk-bind-dns-server ? where data is storend in plesk bind/DNS ? :(

    and you never use url rewriting ? ;)
     
  3. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
  4. NothingHere

    NothingHere Guest

    0
     
    Not that not I'm searching for. I know that. Have you read my problem ?

    I want a script (perl or php script) that can create a A record for a subdomain in my Plesk DNS.

    How Plesk modify A records in DNS ? Where it's stored ? How I can modify that by a script ?

    I know Apache URL Rewriting docs.
    But it's possible to use url rewriting for two different domains, who are on the same server ?
     
  5. breun

    breun Golden Pleskian

    29
     
    Joined:
    Jun 28, 2005
    Messages:
    1,647
    Likes Received:
    0
    Yes, I read your problem, but it wasn't clear to me.

    You can use Plesk's dnsmng command. Check the command-line docs.

    Sure.
     
  6. NothingHere

    NothingHere Guest

    0
     

    Sorry for my poor english ...


    Ho great !

    Now I can wrote a perl or bash script with that. Thanks for your help !

    Thanx, it's now clear. Now I'm sure it could be possible, I'll go reading theses docs ...

    Thanks for all, have a nice day.
     
Loading...