LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-23-2006, 06:03 PM   #1
metalx1000
Member
 
Registered: Jun 2006
Distribution: Debian
Posts: 111

Rep: Reputation: 16
Unable to access photos


I've set up an apache web server on my Ubuntu OS. It works great. I'm running Perl and Shell Scipts on it. The only problem I'm haveing is that the folders I have set to run CGI won't open files. If link to an HTML page in that folder I get the good old

Code:
Forbidden
You don't have permission to access /header.htm on this server.

Apache/1.3.34 Server at 198.41.1.111 Port 80
That's not the problem a problem. I can just use "cat header.htm" in a Script to display it. But, I do have JPEG's that give the same error. It's only in the folder I have set for CGI.

Hear is the part of my httpd.conf I have set for the DIR

Code:
<IfModule mod_alias.c>
ScriptAlias /webplans/ /var/www/webplans/
#
# "/usr/lib/cgi-bin" could be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
    <Directory /var/www/webplans/>
        AllowOverride None
        Options Indexes Includes FollowSymLinks MultiViews
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
I also have all the permissions for the folder and files set to readable for all "chmod a+r *"

Any help would be great.
 
Old 09-28-2006, 05:29 AM   #2
ph34r3d
Member
 
Registered: Apr 2002
Location: Tamaqua, Pa
Distribution: Slackware. Gentoo 1.4rc3, RH9, Mandrake 9.1, Debian, FreeBSD, OpenBSD, Fedra Core 3 x86_64
Posts: 71

Rep: Reputation: 15
what is the owner and group of the files? Are you sure the files can be read properly by apache. Can you show the permissions of all the files? Also, I suggest trying to set the files to 755 if any are executable and 644 for images and .html documents

Also

Code:
<IfModule mod_alias.c>
ScriptAlias /webplans/ /var/www/webplans/
#
# "/usr/lib/cgi-bin" could be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
    <Directory /var/www/webplans/>
        AllowOverride None
        Options Indexes Includes FollowSymLinks MultiViews
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>
should be

Code:
<IfModule mod_alias.c>
Alias /webplans/ /var/www/webplans/
#
# "/usr/lib/cgi-bin" could be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
    <Directory /var/www/webplans/>
        AllowOverride None
        Options Indexes Includes FollowSymLinks MultiViews
        Order allow,deny
        Allow from all
    </Directory>
</IfModule>

let me know how that works for you
 
  


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 access the internet carlonlinux Linux - Networking 6 08-26-2006 03:10 PM
Unable to access a particular website jdavis72 Linux - Networking 3 06-22-2006 06:33 PM
[SOLVED] unable to access harddisk lunardragon Linux - Hardware 4 03-03-2006 10:18 AM
unable to access certain websites lumba Linux - General 9 02-08-2006 11:23 PM
Unable to access internet TBomb Linux - Networking 4 08-11-2004 11:29 AM


All times are GMT -5. The time now is 07:18 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration