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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| |||
| -----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----- |
| |||
| 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. |
| |||
| 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 |
| ||||
| >> 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. |