How to have access at /httpdocs/ writing www.namedomain.ext?

Alles, was den Apache betrifft, kann hier besprochen werden.

How to have access at /httpdocs/ writing www.namedomain.ext?

Postby rammo » 07. August 2009 15:31

Hi there,
can you help me to access at my directory c:/xampp/htdocs/name-of-site/ writing in my web browser an url like: http://www.name-of-site.ext ?
Thank you to all!
Last edited by rammo on 07. August 2009 16:03, edited 2 times in total.
rammo
 
Posts: 2
Joined: 07. August 2009 15:00

Re: How to have access at /httpdocs/ writing www.namedomain.ext?

Postby rammo » 07. August 2009 16:00

This can help me to avoid to use a path of files (like images) of this type "/name-of-site/image.gif" instead of the usually path "/image.gif".
I could avoid the problem using path without slash "/" but I don't like it :)
Thank you for your support, bye
rammo
 
Posts: 2
Joined: 07. August 2009 15:00

Re: How to have access at /httpdocs/ writing www.namedomain.ext?

Postby Wiedmann » 07. August 2009 16:21

I could avoid the problem using path without slash "/" but I don't like it

That's the main problem. It's always a pain, if someone think he must use absolute paths instead of relative ones...

can you help me to access at my directory c:/xampp/htdocs/name-of-site/ writing in my web browser an url like: http://www.name-of-site.ext ?

I guess you want search for "VirtualHosts".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to Apache

Who is online

Users browsing this forum: No registered users and 20 guests