LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-22-2010, 06:06 PM   #1
linuxquestions_forum_use
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Rep: Reputation: 0
Newbie question on "client denied by server configuration"


Beginner apache question here.

I have a cgi script which allows users to upload a file to "upload" directory. It works within my internal network.

From outside my network (Internet) the page/upload portion of the script won't work:

[Wed Dec 22 17:16:29 2010] [error] [client 46.201.57.23] client denied by server configuration: /var/www/html/upload/upload.cgi

I have a feeling it is due to me upgrading from Apache 2.0 to 2.2.3 on my Centos box.

Here is a snippet from my httpd.conf. Do I need to uncomment out the two lines that have the # in front?

Thanks

<VirtualHost www.domain.com>
ServerAdmin john@email-address.com
DocumentRoot /var/www/html
ServerName www.domain.com
ErrorLog logs/www-error_log
CustomLog logs/www-access_log combined
<Directory /var/www/html>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
# Order allow,deny
# Allow from all
</Directory>
</VirtualHost>
 
Old 12-23-2010, 03:00 AM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
yes, having the # in front means it wont read those configs.also chomod 755 the upload.cgi, can the website be seen outside your network?
 
Old 12-23-2010, 03:28 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Hi,

The commented lines and the apache upgrade have nothing to do with this.
I guess there is a .htaccess file that allows access only from your LAN and not for the rest.

Regards
 
Old 12-23-2010, 05:20 AM   #4
linuxquestions_forum_use
LQ Newbie
 
Registered: Dec 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you Bathory! You were right, I didn't even realize/see the .htaccess file that was blocking outside visitors. I edited the .htaccess file and everything works now!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open configuration file "/etc/samba/smb.conf" Permission denied jijawm Linux - Enterprise 8 08-18-2010 11:47 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
free radius server interaction with mysql server ""configuration in code" yawar Linux - Newbie 2 07-23-2008 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration