|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
If I type http://localhost/some_directory/ I'm loading the indexfile for "some_directory".
But if I type http://localhost/some_directory (no ending / ) the page cannont be displayed. How do I change this? So links dont need the ending / Oskar |
|
#2
|
|||
|
|||
|
this is an excerpt from the Apache FAQ that you can alwasy access at : http://httpd.apache.org/docs/misc/FAQ.html
"When you access a directory without a trailing "/", Apache needs to send what is called a redirect to the client to tell it to add the trailing slash. If it did not do so, relative URLs would not work properly. When it sends the redirect, it needs to know the name of the server so that it can include it in the redirect. There are two ways for Apache to find this out; either it can guess, or you can tell it. If your DNS is configured correctly, it can normally guess without any problems. If it is not, however, then you need to tell it. Add a ServerName directive to the config file to tell it what the domain name of the server is." |
|
#3
|
|||
|
|||
|
I got an Ip-address, but no domain-name.
Could it be the reason, that I can't set it up? thanx for reply |
|
#4
|
|||
|
|||
|
if you only using this server locally then you can set a name for it in your /etc/hosts file and then specify this name in your ServerName directive.
If your server is globally accessible then register it in DNS ... |
|
#5
|
|||
|
|||
|
Okay, thanks!
Oskar |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Links with / |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|