PDA

View Full Version : Access domaing prior to DNS delegation


MasteRTriX
8th August 2009, 03:05
Some isp offer access to the website in the form ip/domainname to allow to test the server before changing isp

something like http://300.200.100.001/domain.com

Is this possible?

I managed to do so making ln -s ../domain.com/web domain.com in the sharedip directory in /var/www

I was wondering if we can make it with mod_rewrite, but if not where should I add this line in ispconfig?

Thanks for this great control panel

till
8th August 2009, 11:45
Please undo the things you had done above. This symlink is a very huge security hole and you will not get a working site by symlinking.

Instead use this:

http://www.howtoforge.com/forums/showthread.php?t=432

MasteRTriX
14th August 2009, 02:59
Sorry to be bothering with this again, but I have clients who request this feature, what I´ve done is to add a wildcar to my primary domain dns *.mydomain.com pointing to my ip address, and then the clients who need this feature I add in the httpd include a "ServerAlias client.mydomain.com" and seems to be working just fine.

Anything to be aware of doing this?

Thanks in advance.

Another thing that crossed my mind is to use a php proxy script and mod_rewrite to access domains (previously checking in the proxy that the domain is local to avoid being used as open proxy)