Unix Technical Forum

Apache - so far so good.

This is a discussion on Apache - so far so good. within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Okay I've managed to set most things up on my system the way I like it. Sendmail goes thru ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 12:00 PM
Morten Lundstrøm
 
Posts: n/a
Default Apache - so far so good.

Okay I've managed to set most things up on my system the way I like it.
Sendmail goes thru my ISPs SMTP server :-D
Apache fetches index.html and index.php files now :-D
MySQL works :-D
But I can't get get Apache to fetch the index.* in a sub-dir without adding
a / to the end of the adress.
for example: http://www.hyperion.adsl.dk/~morten/si/
I would like to be able to write http://www.hyperion.adsl.dk/~morten/si
and then it should work :-)
I'm not really sure what kinda option/setting I'm looking for so it's not
particularly easy :-(

Thanks
Morten


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 12:00 PM
George Georgakis
 
Posts: n/a
Default Re: Apache - so far so good.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Morten Lundstrøm" <semizealot@iname.hej> wrote:

> But I can't get get Apache to fetch the index.* in a sub-dir without
> adding a / to the end of the adress.


Do you have mod_dir installed and loaded?

- --
George Georgakis geegATtripleg_net_au http://www.tripleg.net.au/
SlackBuild Central - http://slackpack.tripleg.net.au/

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBQMMkeUlp3nJf7PixEQJGcgCcCerKl0lDQDWc7rhey+5E+Q IaDHoAoIvG
KqmEW0lNSLkpq0O9dp5W3xj9
=EMYx
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 12:00 PM
Jim
 
Posts: n/a
Default Re: Apache - so far so good.

Morten Lundstrøm wrote:

> Okay I've managed to set most things up on my system the way I like it.
> Sendmail goes thru my ISPs SMTP server :-D
> Apache fetches index.html and index.php files now :-D
> MySQL works :-D
> But I can't get get Apache to fetch the index.* in a sub-dir without
> adding a / to the end of the adress.
> for example: http://www.hyperion.adsl.dk/~morten/si/
> I would like to be able to write http://www.hyperion.adsl.dk/~morten/si
> and then it should work :-)
> I'm not really sure what kinda option/setting I'm looking for so it's not
> particularly easy :-(


Edit httpd.conf and look for the variable called DirectoryIndex. It should
already have index.html. You may want to add index.php. At least, I think
that's what you're looking for. Of course, you have to stop and restart
Apache for your changes to take effect.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 12:01 PM
Jim Patterson
 
Posts: n/a
Default Re: Apache - so far so good.

Morten Lundstrøm wrote:
> Okay I've managed to set most things up on my system the way I like it.
> Sendmail goes thru my ISPs SMTP server :-D
> Apache fetches index.html and index.php files now :-D
> MySQL works :-D
> But I can't get get Apache to fetch the index.* in a sub-dir without adding
> a / to the end of the adress.
> for example: http://www.hyperion.adsl.dk/~morten/si/
> I would like to be able to write http://www.hyperion.adsl.dk/~morten/si
> and then it should work :-)
> I'm not really sure what kinda option/setting I'm looking for so it's not
> particularly easy :-(


You might have better luck posting questions like this to
alt.apache.configuration or comp.infosystems.www.servers.unix, but here
goes.

This behaviour can be caused by an erronous ServerName directive, i.e.
one that doesn't lead to the server when used by a web client (browser).
The reason is that some versions of Apache handle a folder name by
redirecting the browser to a new URL which has the "/" on the end, but
it needs ServerName to build up the URL. If it's wrong, the redirect
doesn't work. Fixing ServerName makes the redirect work, which solves
the problem.

--
Jim Patterson
Ottawa, CANADA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 12:02 PM
=?UTF-8?B?0JTQsNC80ZjQsNC9INCT0LXQvtGA0LPQuNC10LLRgdC60Lg=?=
 
Posts: n/a
Default Re: Apache - so far so good.

>> I'm not really sure what kinda option/setting I'm looking for so it's not
>> particularly easy :-(

>
> You might have better luck posting questions like this to
> alt.apache.configuration or comp.infosystems.www.servers.unix, but here
> goes.
>
> This behaviour can be caused by an erronous ServerName directive, i.e.
> one that doesn't lead to the server when used by a web client (browser).
> The reason is that some versions of Apache handle a folder name by
> redirecting the browser to a new URL which has the "/" on the end, but
> it needs ServerName to build up the URL. If it's wrong, the redirect
> doesn't work. Fixing ServerName makes the redirect work, which solves
> the problem.


Or setting the "UseCanonicalName" to "Off"

--
дамјан

Speak softly and carry a cellular phone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:22 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com