Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

DirectoryIndex ignores entry, et al.

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  dynamic IP  
Author Message
rogue

External


Since: Mar 24, 2004
Posts: 3



(Msg. 1) Posted: Wed Mar 24, 2004 8:46 pm
Post subject: DirectoryIndex ignores entry, et al.
Archived from groups: alt>apache>configuration (more info?)

Hiall!

I'm trying to set up an ecommerce site. I've added (a default; I can change
this if needed) "storefront.html" to my DirectoryIndex line, and restarted the
server, but I only get to this page if I specify

  http://littlestoreonline.com/storefront.html

Running Mandrake 9.1, BTW (client site)

Another problem: If I set file permissions and ownerships congruent to existing
sites on this server, I get a "you don't have permission to access
blahblah.cgi" error -- everything already there seems to be owned by root:root
(which makes me believe that apache is running as root, correct me if I'm
wrong); it's aparently seeing the file (which makes me belive my ScriptAlias is
working), but it just won't run it. If I log on as root, and run the cgi (perl)
from a shell, it works OK, meaning that the magic is working... I think.

SOOT: Friendly deacon needs Linux admin help in Worcester, MA. (I can't
continue to donate time, at least in my present financial situation.)

TIA!


Pete<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: DirectoryIndex ignores entry, et al. 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Mar 25, 2004 8:39 am
Post subject: Re: DirectoryIndex ignores entry, et al. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Pete Wason <rogue DeleteThis @hynoom.com> wrote:
 > this if needed) "storefront.html" to my DirectoryIndex line,

Did you changed it in the right place and with or without quote?

 > error -- everything already there seems to be owned by root:root
 > (which makes me believe that apache is running as root

Read the FAQ. Apache have to be started as root to open port 80, then
he switches to the user/group specified in the configuration file,
usually nobody/nogroup. For this reason every dir/file have to
be r-x/r-- by everybody.

Davide

--
| Man is a rational animal who always loses his temper when he is called
| upon to act in accordance with the dictates of reason.
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: DirectoryIndex ignores entry, et al. 
Back to top
Login to vote
rogue

External


Since: Mar 24, 2004
Posts: 3



(Msg. 3) Posted: Sat Mar 27, 2004 1:10 pm
Post subject: Re: DirectoryIndex ignores entry, et al. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:

 > Pete Wason <rogue.DeleteThis@hynoom.com> wrote:
 >
  >>this if needed) "storefront.html" to my DirectoryIndex line,
 >
 >
 > Did you changed it in the right place and with or without quote?
 >


I edited /etc/httpd/conf/vhosts/Vhosts.conf, and added the new index file name
without the quotes.

 >
  >>error -- everything already there seems to be owned by root:root
  >>(which makes me believe that apache is running as root
 >
 >
 > Read the FAQ. Apache have to be started as root to open port 80, then
 > he switches to the user/group specified in the configuration file,
 > usually nobody/nogroup. For this reason every dir/file have to
 > be r-x/r-- by everybody.

So as long as I have permissions set properly, the owner:group stuff really
doesn't affect anything? I've tried setting all dirs and scripts to 755, or
dirs to 700 and scripts to 755, and html files to 600 or 644. Documentation
claims dirs and scripts should be 700 and other files should be 600, but I
think that's because this product assumes you're using CGIwrap or something
like that. Which I'm not, apparently. But even if I set everything to 777, I
still don't "have permission" to run the cgi scripts... ?!

Pete<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: DirectoryIndex ignores entry, et al. 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Sat Mar 27, 2004 9:36 pm
Post subject: Re: DirectoryIndex ignores entry, et al. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Pete Wason <rogue RemoveThis @hynoom.com> wrote:
   >>>this if needed) "storefront.html" to my DirectoryIndex line,
 > I edited /etc/httpd/conf/vhosts/Vhosts.conf, and added the new
 > index file name

It looks ok to me. I just tryed and it showed the correct page
(I think).

 > So as long as I have permissions set properly, the owner:group stuff really
 > doesn't affect anything?

Well, if the files are owned by root and you are not root and the
permissions are rw-r--r-- you won't be able to change the file
anymore so...

 > claims dirs and scripts should be 700 and other files should be 600i

Yes, if they are owned by the same user that run apache.

 > still don't "have permission" to run the cgi scripts... ?!

Did you put the CGI scripts in the correct directory? Usually scripts
are kept in a specific cgi-bin dir to keep them separated from other
stuff.

Davide

--
| Software, n.: Formal evening attire for female computer analysts.
|
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: DirectoryIndex ignores entry, et al. 
Back to top
Login to vote
rogue

External


Since: Mar 24, 2004
Posts: 3



(Msg. 5) Posted: Thu Apr 01, 2004 7:29 pm
Post subject: Re: DirectoryIndex ignores entry, et al. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:

 > Pete Wason <rogue RemoveThis @hynoom.com> wrote:
 >
   >>>>this if needed) "storefront.html" to my DirectoryIndex line,
  >>
  >>I edited /etc/httpd/conf/vhosts/Vhosts.conf, and added the new
  >>index file name
 >
 >
 > It looks ok to me. I just tryed and it showed the correct page
 > (I think).

He complains now that not only does <a style='text-decoration: underline;' href="http://littlestoreonline.com/" target="_blank">http://littlestoreonline.com/</a> not show
<a style='text-decoration: underline;' href="http://littlestoreonline.com/storefront.html" target="_blank">http://littlestoreonline.com/storefront.html</a> (which it is from my browser), but
also that his old site <a style='text-decoration: underline;' href="http://refugeeapostolate.com/" target="_blank">http://refugeeapostolate.com/</a> is not working now --
trying to get to this URL ends up at the first one, which should be a separate
site.
 >
 >
  >>So as long as I have permissions set properly, the owner:group stuff really
  >>doesn't affect anything?
 >
 >
 > Well, if the files are owned by root and you are not root and the
 > permissions are rw-r--r-- you won't be able to change the file
 > anymore so...
 >
 >
  >>claims dirs and scripts should be 700 and other files should be 600i
 >
 >
 > Yes, if they are owned by the same user that run apache.
 >
 >
  >>still don't "have permission" to run the cgi scripts... ?!
 >
 >
 > Did you put the CGI scripts in the correct directory? Usually scripts
 > are kept in a specific cgi-bin dir to keep them separated from other
 > stuff.

I created a separate dir olm-scripts at the same level as the general cgi-bin
dir, just to keep things separate from anything that's already on this machine.

I tried to convince the guy who owns this server that he might be better served
by a regular isp/vhost setup - saving him money, time, and headaches in the
future. He doesn't see the point in this apparently, as long as he can get
volunteers like me to help him out Wink

Pete<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: DirectoryIndex ignores entry, et al. 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 6) Posted: Fri Apr 02, 2004 8:41 am
Post subject: Re: DirectoryIndex ignores entry, et al. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Pete Wason <rogue.TakeThisOut@hynoom.com> wrote:
 > He complains now that not only does <a style='text-decoration: underline;' href="http://littlestoreonline.com/" target="_blank">http://littlestoreonline.com/</a> not show

Now I have no response at all.
I suggest you first sort out the connection with your provider,
then focus on which VHost should serve what.

Davide

--
| As Will Rogers would have said, "There is no such things as a free
| variable."
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: DirectoryIndex ignores entry, et al. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
acces_log entry?? - why do I have this in my acces_log coming from my ISP? 66.177.159.205 - - [16/Dec/2003:21:29:25 -0500] "GET /scripts/root.exe?/c+dir HTTP/1.0" 404 284 66.177.159.205 - - [16/Dec/2003:21:29:26 -0500] "GET /MSADC/root.exe?/c+dir HTTP/1.0&q...

Strange Log-entry? - 212.239.184.174 - - [03/Oct/2003:11:48:34 +0200] "\xe8\xd8\x0e\xfc\x9d\xfd\xc7\x8a\xa6\x17\xdd\xc1" 200 10061 "-" "-" 213.36.86.13 - - [03/Oct/2003:22:04:43 +0200] "\x16,\x84^/\xa4\xab\xf8\xb14\x91M\xcd" 200 10061...

[OT] Unusual log entry - Group, Sorry to post this, but Google and Symantec searches came up empty. Here's a line from my access_log: 200.154.128.74 - - [24/Aug/2003:18:50:39 -0400] "\x92X\xf1\xef\xeb\xdf4\x86\b\t X" 400 - The IP shows to a .br domain, and there's ...

Automatic PEM entry - Hello, Apache 1.3.19 SSL AIX 4.3 Does anyone know a way to have the PEM entered automatically if I try to start Apache SSL during a system reboot? Thanks, Mike
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]