Skip to main content

Folder for any incoming domain

Comments

5 comments

  • storminternet
    Perhaps I may not be clear with your requirements but what I understood here that you need to redirect incoming request to your domain to specific folder. A redirect rule here can play trick to satisfy your requirements. For more details refer to [url=http://httpd.apache.org/docs/current/mod/mod_rewrite.html]mod_rewrite - Apache HTTP Server Version 2.4
    0
  • cPanelMichael
    Hello :) By default, visitors to domain names pointed to your servers without VirtualHost entries are directed to the default website page. You could directly edit the default website page via: "WHM Home " Account Functions " Web Template Editor" Thank you.
    0
  • soathiam
    Thank you for your answers. cPanelMichael - I really need to control the folder because my application delivers content based on the incoming domain. What I would like is for anyone to just DNS point to my server and my app will do the rest. storminternet - I will look into mod_rewrite and see if it is the answer to my dilema :) Any suggestion is welcome, Thanks Swat
    0
  • soathiam
    I might be reading it wrong but it seems that mod_rewrite needs the domain name (url). I don't know the domain in advance, the users just specify it in their profile so it is dynamic. [COLOR="silver">- - - Updated - - - Hi, Thank you for your answers, it looks like the system erased my previous reply. As per my previous post, it looks like mod_rewrite is not the solution. Also, I can't use the default web page, I need to get the any domain to my folder as my application delivers content based on domain name. The domains are dynamic and user have the ability to change them. My other option is to set up an automated addon domain creator that uses cPanel's API but I wanted to avoid messing with addon domains as after a while it will be very hard to manage. Any suggestion is welcome, Thank you
    0
  • cPanelMichael
    You could setup the default website page to redirect to a location/website of your choosing, but keep in mind it's presented to more than just domain names not configured in Apache. Thank you.
    0

Please sign in to leave a comment.