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 20th, 2002, 09:35 PM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
403 errors when setting up Apache

Hello,


I'm trying to set up a backup webserver which has an IP visible to the outside world mapped to an interal IP by our router. We're having problems configuring the httpd.conf, specifically virtual hosts.

what's odd is that the default DocumentRoot displays fine whenever we try to view it from the server itself but not anywhere else, and only when we use 127.0.0.1 or localhost. if we use the internal IP (192.168.28.25) we get a 403 forbidden error.

similarly, any virtual hosts we set up get the same error. we have another server running apache and i've set up the virtual hosts exactly the same but no luck. could anyone recommend a few things that i should check that might be causing this nearly constant 403 error?

if you like, i'll post my httpd.conf file. thanks.

Reply With Quote
  #2  
Old January 20th, 2002, 09:49 PM
jdk's Avatar
jdk jdk is offline
phpkid ~~~~~~ :o)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2000
Location: NJ, USA
Posts: 2,535 jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 11 m 11 sec
Reputation Power: 10
Send a message via Yahoo to jdk
Yeah putting httpd.conf would help.

JD

P.S. : let me know when your hp is ready. its cool.
__________________
_____________________________
d.k.jariwala (JD)
~ simple thought, simple act ~
I blog @ http://jdk.phpkid.org

Reply With Quote
  #3  
Old January 20th, 2002, 09:58 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
>> if you like, i'll post my httpd.conf file

Don't post it, attach it instead.

More than likely it's a router configuration problem. And when you test it, don't use IE.

Reply With Quote
  #4  
Old January 20th, 2002, 11:27 PM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
here's the file, zipped, since it wouldn't let me attach the regular file.
Attached Files
File Type: zip httpd.conf.zip (7.6 KB, 128 views)

Reply With Quote
  #5  
Old January 21st, 2002, 12:38 AM
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
What OS+dist are you running?
Your httpd.conf looks pretty ugly. At least 20 lines are misconfigured. In addition, files and dirs are all over the places. You should start it over from scratch and give FreeBSD a try, just to make your life easier.

1) ServerRoot /etc/httpd/ -> ServerRoot "/etc/httpd"

2) Uncomment the following lines:
#ServerName architect
#Listen *:80
#ScoreBoardFile /var/run/httpd.scoreboard #UserDir public_html
#IndexOptions FancyIndexing (don't define twice)

3) KeepAlive false -> KeepAlive on
There is no such option as false.

4) UseCanonicalName on -> UseCanonicalName off

5) TypesConfig /etc/mime.types
Your files are all over the places.

6) You don't need to define ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" twice.
Additionally, a scriptalias'ed cgi-bin doesn't need any option. So change Options ExecCGI to Options None.

7) If php3+php4 coexist, don't put .php3 in x-httpd-php:

<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php

Remove .php3

8) # The following is for PHP/FI (PHP2):

You don't need to redefine that.

9) mod_perl is not CGI, therefore you don't need Options +ExecCGI

10) Right above the line <IfDefine HAVE_SSL>, you left out NameVirtualHost *. Additionally, ssl's vhost should have lowest <VirtualHost> priority. You need to move it to the last <VirtualHost>.

11) You don't need Listen 443

12) You don't need this:

# Virtual host quinlanco_com
<VirtualHost >
ServerSignature email
</VirtualHost>

13) Just use <VirtualHost *>, not <VirtualHost 192.168.28.80>.

14) DocumentRoot /home/httpd/websites/hexoloy_com/web

Quote the path at all time.
You also need a <Directory> for that path.

15) Order first, then allow/deny

Allow from from all
Order Deny,Allow

change the line order. Additionally, you have two froms, you just need one.

16) Remove ExecCGI

<Directory "/var/www/cgi-bin">
Options ExecCGI -> Options None

Reply With Quote
  #6  
Old January 21st, 2002, 10:17 AM
cliffyman cliffyman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Washington DC, USA
Posts: 156 cliffyman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 7 sec
Reputation Power: 8
Send a message via AIM to cliffyman
thanks for the input.

i'm running Red Hat 7.1. a lot of these configuration options were untouched - ie, that was the default httpd.conf that was created after the default install.

i'll let you know how i make out.

Reply With Quote
  #7  
Old January 22nd, 2002, 03:30 AM
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
>> these configuration options were untouched

That's why. Like I always said, Redhat people don't really have a clue what Apache is. In fact, they might be strong in marketing but definitely don't have any clue about any technical stuffs. To put it simple, Redhat sucks and is the worst Linux distribution. So why waste your time on this shi_tty Linux distribution?

Don't get me wrong, I'm not trying to put you Linux people down. BSD users are not always smarter. We are smarter because we made the right decision for using BSD.

Last edited by freebsd : January 22nd, 2002 at 03:33 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > 403 errors when setting up Apache


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
Stay green...Green IT