|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Newbie to apache - Access Drive E problem
I have an xp machine running apache 2.2. Have steup on c: and wish to run website from files on E:.
I Have ip address in router, etc and had it so I could call up localhost and index.html from web. Problem is I can't call up index.html or anything else on E: Any help would be appreciated, John this is part of my httpd.conf: ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2" Listen 80 NameVirtualHost 216.51.136.136 <VirtualHost 216.51.136.136> ServerName stopnwo.com ServerAdmin(E-Mail address blocked: See forum rules) DocumentRoot "e:/stopnwo" </VirtualHost> <VirtualHost 216.51.136.136> DocumentRoot "e:/theusrepublic" ServerName theusrepublic.com ServerAdmin(E-Mail address blocked: See forum rules) </VirtualHost> <VirtualHost 216.51.136.136> DocumentRoot "e:/reeldeahl" ServerName reeldeahl.com ServerAdmin(E-Mail address blocked: See forum rules) </VirtualHost> I have seen one way to do it in php (although I could not get it to work) but there must be a way in apache. Last edited by jrdeahl : December 7th, 2006 at 01:08 PM. Reason: problem changed |
|
#2
|
|||
|
|||
|
I have found the solution!!!! There are literally hundreds of people that have been looking for this solution on the internet and have not posted a solution for the rest of us that run into this problem.
It seems to me that apache is very touchy about virtualhost setups. I think there could be more uniformity. For some reason contrary to the manual (which seems to be written mainly for linux) my setup only works with an * instead of my ip address. If you change to an * with out a directory "directive" you get a permissions error. By making a directory directive "correctly" it will pass you to your correct index.html. You can alter the default.html in htdocs dir slightly with the the name of your site and save it to the correct directories so you know it is working. Also remember I am running apache on w2k and you have to have the following directories (using my example). The actual log files will be made for you. My apache is installed on c:\apache c:\theusrepublic\logs c:\stopnwo\logs If you do not have these directories, apache will not run. In this example I have not tweaked it yet for security, so beware! Listen 80 ServerRoot "C:/Apache" DocumentRoot "C:/Apache/htdocs" ServerAdmin(E-Mail address blocked: See forum rules) ServerName 216.51.136.136 NameVirtualHost * <VirtualHost *> ServerName (URL address blocked: See forum rules) ServerAdmin(E-Mail address blocked: See forum rules) DocumentRoot /theusrepublic DirectoryIndex index.html ErrorLog /theusrepublic/logs/error_log CustomLog /theusrepublic/logs/access_log common </VirtualHost> <VirtualHost *> ServerName (URL address blocked: See forum rules) ServerAdmin(E-Mail address blocked: See forum rules) DocumentRoot /stopnwo DirectoryIndex index.html ErrorLog /stopnwo/logs/error_log CustomLog /stopnwo/logs/access_log common </VirtualHost> # notice theusrepublic does not have a "/" in front of it! <Directory theusrepublic> Options FollowSymLinks AllowOverride All #None Order allow,deny #deny,allow # Deny from all Satisfy all </Directory> # notice stopnwo does not have a "/" in front of it! <Directory stopnwo> Options FollowSymLinks AllowOverride All #None Order allow,deny #deny,allow # Deny from all Satisfy all </Directory> |
|
#3
|
|||
|
|||
|
that's good that you've posted this for other future memebers with this problems, can see this and resolve their issues quickly.
you deserve some reputation points for this!! ![]()
__________________
Apache Expert |
|
#4
|
|||
|
|||
|
Thank you. Appreciate it.
After that problem I got stuck on mysql. Boy, what a bummer that is. A person could do a whole carrer on that one. Almost 2000 page manual. I finally gave up trying to create, configure and permission a new db. No where did I find on the net where it told anyone to just use the default mysql db. I finally just used the default mysql one and it worked fine. Up and running now with 2 websites. Will have 4 on it pretty soon. 3 with phpbb. Hope I don't have to buy more bandwidth. heh heh Thanks again, John |
|
#5
|
||||
|
||||
|
Thanks for being thorough and coming back to post that solution. Great job!
__________________
Click the image if at any point you don't like my decision.Ask the Windows Guru! |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Newbie to apache - 404 problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|