Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Up a Testing Server

Status
Not open for further replies.

mattskelton

Technical User
Joined
Dec 7, 2004
Messages
1
Location
CA
Hi,
I recently set up a site on Apache 2 on my PC. The site is working fine but I need to know how to set up a testing server. I have my site set up on my local hard drive (which I am about to partition) and I would like to test out some pages before I post them to my document root folder on Apache. I used to use localhost but after setting up this server, localhost just views the servers document root (my site). So any changes that I make to these docs are automatically "uploaded". Is virtaulhost the answer?

Thanks,

Matt
 
Create a subdirectory called /test in your documant root and install your test files there. If you've coded well and used only relative references you should have not problems testing the new code.
 
Changes you make to files in your document root WILL be served on localhost.

Virtualhost is a good clean way to test your new stuffe -that's what I would do.

Here's a link howto do it:


Copy your document root to the vertualhost document root and tryout your changes on that before "going live".

Regards


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top