SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old December 6th, 2006, 02:23 AM
jrdeahl jrdeahl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 3 jrdeahl User rank is Private First Class (20 - 50 Reputation Level)jrdeahl User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 56 m 49 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old December 9th, 2006, 03:47 AM
jrdeahl jrdeahl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 3 jrdeahl User rank is Private First Class (20 - 50 Reputation Level)jrdeahl User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 56 m 49 sec
Reputation Power: 0
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>
Comments on this post
infamous-online agrees: for providiing help for future posters in need of help on virtual directories
Nilpo agrees!

Reply With Quote
  #3  
Old December 14th, 2006, 12:28 AM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 24 m 44 sec
Reputation Power: 7
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

Reply With Quote
  #4  
Old December 14th, 2006, 01:03 AM
jrdeahl jrdeahl is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 3 jrdeahl User rank is Private First Class (20 - 50 Reputation Level)jrdeahl User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 56 m 49 sec
Reputation Power: 0
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

Reply With Quote
  #5  
Old December 15th, 2006, 02:15 PM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Near Dev Articles Headquarters
Posts: 122 Nilpo User rank is Private First Class (20 - 50 Reputation Level)Nilpo User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 171911 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171911 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171911 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171911 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171911 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171911 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 11 h 37 m 59 sec
Reputation Power: 3
Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
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!


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Newbie to apache - 404 problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway