Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Index.html on domain's documentroot does not execute, it gives me forbidden error.
Rather if I execute it directly, say http://www.domain.com/index.html it works fine.
I have checked the permissions and they are fine.
Can any one provide me any suggestions on how to fix this problem??
When you say you've checked the permissions, are you refering to the file system permissions or apaches permissions. In your httpd.conf there should be a section that looks something like this:
<Directory /var/www/>
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options -Indexes Includes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
where /var/www/ is the root directory of your web page, the option your looking for is Indexes.
You should have a something like: DirectoryIndex index.html index.htm etc... to indicate the file names that will be recognised as index files.
I a similar problem recently migrating my webserver from linux to openbsd, in that case there where three things preventing me from accessing my pages.
1) in OpenBSD Apache runs chrooted by default, while my pages where kept in tomcats webapps folder, outside of that chroot, meaning they where invisible to apache.
2) Because the file system is organised differently between the two OS's i had initially just left my conf the way it was, and created symlinks to point to the new locations, however while the above config allow following symlinks in root, the higherlevel permission defaults to only allowing symlinks if they are owned by apache. (Which they weren't, still aren't and don't need to be) I just went throught the conf and pointed the directories to their true locations.
3) Still not working properly. I was at this point I discovered that the version of apache that ships with openbsd has most of the core modules statically compiled into it. The linux config had a swathe of loadmodule statements, which had initially prevented the server from starting at all, being that the files where missing, until I commented them out. What I failed to note though was that many of the critical configurations where nested int <IfModule blah.c> type statements, prventing them from being evaluated, since the modules where missing.
I think you can rule out number 1, since you can see the files at all, so my advise would be to check through your httpd.config very carefully if you run httpd -l it will give you a list of complied in modules, make sure you are not trying to load any of these (even if you have the module files), make sure that you have the set the Indexes option in your Document Root and make sure that if they are there, the configs are actually being evaluated, particularly DirectoryIndex, which in my linux config was dependent on mod_dir.c being loaded.
Hmmm, don't know if this is any help, but some things to look for at least, one last thing have a look through your access_log and error_log, you'd be surpised at how much more quickly you can solve stuff like this if you use these.
Sorry, I didn't mean to be condecending with that error_log comment, it just that I'm still fairly new to this stuff, and only recently been able to look at those things, and not just see a load of meaningless junk
JRun? I've only used tomcat, but I assume that JRun would also use the java security manager, have you tried starting it with security switched off? perhaps you should look at you policy file....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.