Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 1st, 2002, 02:04 PM
pgreen50 pgreen50 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 22 pgreen50 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
New User

My server works fine, i do have to use my static IP address to access my server, but i believe thats ok.

My question - If i just input my IP address http://12.123.12.125 E.g without specifying an actual html doc. I can see the actual htdocs file that my web pages are stored in. Is this normal or should i be placing them else where. Also can they be changed from the outside. I have not really changed any of the files within Apache it is as it was on installation.


Regards

Phil (New User)

Reply With Quote
  #2  
Old January 1st, 2002, 02:16 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I can see the actual htdocs file that my web pages are stored in

htdocs should be a directory, not a file.

Say your docroot is: /www/htdocs but when going to your site you are seeing http://12.123.12.125/htdocs/file.html, then you didn't set your docroot correctly. Docroot in URL form is the URI starting from the root at http://12.123.12.125/.

I don't quite get your questions. It appears that you might want to hide the Directory listing or perhaps your /www/htdocs/index.html should be displayed automatically when going to http://12.123.12.125/

If so, turn off Indexes:

<Directory "/www/htdocs">
Options All -Indexes
AllowOverride All
...
...
</Directory>

To display index.html automatically, look for the line that says:

DirectoryIndex index.html index.htm index.php

Apache will use index.html first, index.htm second and index.php last. If all 3 are not found and you have -Indexes, then a [403] would be return.

Reply With Quote
  #3  
Old January 1st, 2002, 02:25 PM
pgreen50 pgreen50 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 22 pgreen50 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry i did not explain it correctly. I have another site that jumos to my own server. It opens all the correct pages Etc. If i type in just my IP address though which is http://62.254.11.92 you can see the htdocs file as you have said. The example you sent to me, would this cure this. If i was to leave it as it is could my files be altered from the outside.

Thanks


Phil

Reply With Quote
  #4  
Old January 1st, 2002, 02:36 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Okay, the docroot is fine. You just need to set home.htm to be your default page:

DirectoryIndex home.htm

Just to be safe if you don't want people to see your directory listings, you should add the -Indexes like I mentioned previously.

Reply With Quote
  #5  
Old January 1st, 2002, 02:46 PM
pgreen50 pgreen50 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 22 pgreen50 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for helping me. I have dome the following:

DirectoryIndex home.htm

I am a little confused as to the other. I have tried to find it in the http.conf file but cannot find it. Should i actually place that bit of coding into the file, if so could i ask where??

If so, turn off Indexes:

<Directory "/www/htdocs">
Options All -Indexes
AllowOverride All
...
...
</Directory>




Sorry to keep bothering you

Phil

Reply With Quote
  #6  
Old January 1st, 2002, 02:50 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Put those in httpd.conf somewhere in the middle.

Reply With Quote
  #7  
Old January 1st, 2002, 02:52 PM
pgreen50 pgreen50 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 22 pgreen50 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks

Phil

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > New User


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 3 hosted by Hostway
Stay green...Green IT