Web Hosting Talk







View Full Version : See a site before DNS working


vels
06-15-2001, 01:38 PM
Hi

How can i see a site before dns are working?
http://xxx.xxx.xxx.xxx/?????????????

deziner
06-15-2001, 02:00 PM
try this

http://IP-Address here

http://###.###.###.###

vels
06-15-2001, 02:35 PM
I have only one IP to my RaQ.....(and I access my admin tools with the IP)

I mean how to see a virtuel site before the dns are woriking.

cheatman
06-15-2001, 02:59 PM
add this line in your httpd.conf file under you master/main domain
located in /etc/httpd/conf on your server

AliasMatch ^/newsite/([^/]+)(/(.*))? /home/sites/$1/web/$3


then your new sites will be able to be seen at www.masterdomain.com/newsite/www.newdomain.com/

NewonNet
06-25-2001, 02:59 AM
Having problem with getting this to work... working on it.


thanks for the info....

brandonk
06-25-2001, 12:40 PM
You can also try something like this... this is how I create a temp URL for my clients:

ln -s /home/sites/home/web/temp/$domain /home/sites/site#/web

Then go to http://mainservername/temp/$domain

JimMatysek
06-25-2001, 05:55 PM
Here's how I handle this on a RaQ4R sharing one IP address across multiple domains (YMMV). This all assumes that your main site on your server is at www.maindomain.com and your new site that's now in test mode will be available at www.newdomain.com in the future. It allows this site to be accessed via newdomain.maindomain.com for pre-release testing:

-First make a backup copy of your httpd.conf file in case something doesn't work.

-Create a file called subs.conf in your /etc/httpd/conf directory (requires root access). Make sure the permissions for this file are the same as for the httpd.conf file. Add the following line to the end of your /etc/httpd/conf/httpd.conf file:

include /etc/httpd/conf/subs.conf

-Create the new site and users via the control panel, adding them to the DNS config and everything as if their domain name had been pointing to your name server and www.newdomain.com were working. Also add an A record for newdomain.maindomain.com to your DNS server via the control panel.

-Edit subs.conf and copy the entire <VirtualHost>...</VirtualHost> section for this new site from your httpd.conf file to the subs.conf file. Edit this section in subs.conf as follows: Change the ServerName to newdomain.maindomain.com. Delete the ServerAlias if one is listed. In the RewriteCond and RewriteRule lines, change www.newdomain.com to newdomain.maindomain.com.

-Restart Apache (/etc/rc.d/init.d/httpd restart). Your new site should now be available for testing at newdomain.maindomain.com.

I have not been successful with ASP or FrontPage extensions working for test sites in this manner yet, but plain old HTML, CGI, and PHP all work fine.