LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need to put a '/' in the directory path with apache (https://www.linuxquestions.org/questions/linux-newbie-8/need-to-put-a-in-the-directory-path-with-apache-843007/)

fro1269 11-08-2010 06:49 AM

need to put a '/' in the directory path with apache
 
Hello everybody.

I am using Apache/2.2.3 on Centos 55. I am having an issue that is pretty strange to me. Whenever I navigate to a url on my webserver from outside my network. I have to put a '/' in the directory path

for example

When I type in: mydomain.com/directory1 it winds up redirecting to the hostname for my server

HOWEVER

When I type in mydomain.com/directory1/ it works, since I am adding the '/' at the end of the path. I suspect it is because I do not have my FQDN set up correctly.

I did not have this issue when I was using Ubuntu 10.04 , I suspect because Ubuntu automagically set this up for me. Is there a particular way I need to setup my FQDN in centos to get this to work properly? I have tried going into /etc/hosts and adding my FQDN in there, but I do not think I did it properly, is there a particular way the /etc/hosts file needs to be setup? Or are there any other places I need to go to get this to work? any help is appreciated

bathory 11-08-2010 07:50 AM

Hi,

I guess you have set you Aliases wrong. Take a look here to see the difference between the existence or not of a trailing slash in the Alias directive

Regards


All times are GMT -5. The time now is 07:56 AM.