Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 2nd July 2013, 14:13
masoodmx masoodmx is offline
Junior Member
Join Date: Jul 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default client denied by server configuration | File does not exist: /etc/apache2/htdocs

I've been tackling with a problem in the apache server of our company for many hours; It's quite urgent and couldn't resolve it yet!

Actually the website of the company runs a shell script file providing pre-download information and download link in which some HTML code is embedded.

After installing a tool called awstats, some configuration modification was needed, and I tried any possible option to successfully run, but unfortunately couldn't. But the main and important problem now is that there is an error of permission denied, when the script file should be run!

This is the error shown in the page:


You don't have permission to access /programName/ on this server.
Apache/2.2.22 (Ubuntu) Server at companyWebsite.de Port 80

In addition, the following error logs exist in error.log file:

client denied by server configuration: /var/www/programName/programName.sh, referer: http://companyWebsite.de/companyName...Name_Downloads

File does not exist: /etc/apache2/htdocs

There is not htdocs in this directory.
The file httpd.conf is empty.
And the content of conf.d/programName.conf is:

Alias /programName /var/www/programName

<Directory /var/www/programName>
Options +ExecCGI
AddHandler cgi-script .sh
DirectoryIndex programName.sh
Order allow,deny
Allow from All
Also, according to [this related topic][1] , the code "Require all granted" doesn't work!

The file site-availabe/default is the same as default file offered everywhere. But site-available/companyName configuration file has the following content:

<VirtualHost *:80>
ServerAdmin edv@companyName.selfip.com
DocumentRoot /var/www
Options -Indexes
ErrorLog /var/log/apache2/error.log

LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from ::1/128

If there is more information needed to solve the issue, just let me know please.

Thanks in advance.

[1]: http://stackoverflow.com/questions/1...-configuration
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeradius and Mysql uvstudios HOWTO-Related Questions 4 19th February 2014 13:11
Tried to compile a kernel but: bryzf Kernel Questions 0 20th January 2013 00:48
rkhunter warnings esezako General 7 27th September 2011 08:28
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 14:21
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 23:41

All times are GMT +2. The time now is 12:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.