logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Two Sites On One Apache Server
Author
misfitplanet



Joined: 29 Apr 2011
Posts: 1
Location: Minnesota, WA

PostPosted: Fri 29 Apr '11 16:44    Post subject: Two Sites On One Apache Server Reply with quote

Programmer in the basement for life, (Basic, Pascal, C, C++, Objective-C, Quartz, Cocoa, Python, GTK, WX, QT, Ruby, HTML, XML,, but Network Newbie. Got Apache running by placing all my JavaScript files in my index.html in:

Code:
/usr/local/apache2/htdocs
It works, but I don't know if this is appropriate? BUT THAT NOT MY REAL QUESTION! Please read on.

OK, but I'm in development. I want to create a second site to make changes, but leave the main site untouched until I'm satisfied with the bug fixes and feature updates. Then I'll copy all the new fixes over with a script. The thing is guys, I don't know how to create a second site for testing???

I tried following a .conf tutorial on this subject. No success. I've been around long enough, I know this has to be simple, it's just aa matter of find that little piece of info.

FYI: Running Slax Live with Apache. No storage for user (because I make them use localStorage for their account changes.)

I haven't purchased a (web name, still deliberating) I just have an ip. address and my Apache software running it.

Could someone tell me how to get a test site up next ot he real one to make changes so I can just copy it over to the real site when I feel I've made significant changes?

If you are curious here my development project. I need a partner in crime if you think it's cool: 75.72.25.11

High hopes for features and make overs.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Fri 29 Apr '11 17:09    Post subject: Reply with quote

Namebased Vhosts!

First option RTFM Wink http://httpd.apache.org/docs/2.2/en/vhosts/name-based.html

There are some topics about this.
http://www.apachelounge.com/viewtopic.php?t=1308&view=next
http://www.apachelounge.com/viewtopic.php?p=16981
http://www.apachelounge.com/viewtopic.php?p=10108

if you still have a question please ask again.
Back to top


Reply to topic   Topic: Two Sites On One Apache Server View previous topic :: View next topic
Post new topic   Forum Index -> Apache