JavaSprout
Programmer
I am not sure how to structure directories and/or Apache in order to work in the best way possible.
I used to work just locally (Windows XP) with localhost and each application had a different sub-directory in the Apache htdocs directory, e.g.:
/htdocs/phpMyAdmin
/htdocs/hangman
/htdocs/phpBB
/htdocs/myAppDev
/htdocs/myAppProd
This worked well for the last year or so. I just typed in the URL, to run the hangman app etc.
NOW, I want to run an internet connected website from the same machine as I normally develop from (Waits for those who fainted to come round. I know, not ideal, but for now it will be like that).
Soooo...I have configured httpd.conf so that both DocumentRoot and the Directory command both point to my Production directory:
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/myAppProd"
<Directory "C:/Program Files/Apache Group/Apache/htdocs/myAppProd">
(Dunno why I need to tell Apache twice, but, hey, don't get defocused!)
Anyway, now, internet users can access my real site with, say, BUT how do I access all my other applications?? How do I now for example access since now would automatically go to /htdocs/myAppProd?
I thought of sticking all my other apps in subdirectories BELOW the myAppProd directory and password protecting them. Then I could surf to fine. But I'm not sure about the security of sticking EVERYTHING else in the same directory structure as the outside world.
Maybe there's some magic values I could play with in Apache?
What do you think is the best solution? I'm sure I'm not the first (or the last) to need to do this.
Thanks!

I used to work just locally (Windows XP) with localhost and each application had a different sub-directory in the Apache htdocs directory, e.g.:
/htdocs/phpMyAdmin
/htdocs/hangman
/htdocs/phpBB
/htdocs/myAppDev
/htdocs/myAppProd
This worked well for the last year or so. I just typed in the URL, to run the hangman app etc.
NOW, I want to run an internet connected website from the same machine as I normally develop from (Waits for those who fainted to come round. I know, not ideal, but for now it will be like that).
Soooo...I have configured httpd.conf so that both DocumentRoot and the Directory command both point to my Production directory:
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/myAppProd"
<Directory "C:/Program Files/Apache Group/Apache/htdocs/myAppProd">
(Dunno why I need to tell Apache twice, but, hey, don't get defocused!)
Anyway, now, internet users can access my real site with, say, BUT how do I access all my other applications?? How do I now for example access since now would automatically go to /htdocs/myAppProd?
I thought of sticking all my other apps in subdirectories BELOW the myAppProd directory and password protecting them. Then I could surf to fine. But I'm not sure about the security of sticking EVERYTHING else in the same directory structure as the outside world.
Maybe there's some magic values I could play with in Apache?
What do you think is the best solution? I'm sure I'm not the first (or the last) to need to do this.
Thanks!