<Directory>

This is a discussion on <Directory> within the Apache Web Server forums, part of the Web Server and Related Forums category; I am having a problem setting up a virtual directory so that when I type 'blah' into a webbrowser it ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-26-2004
Mike Morley
 
Posts: n/a
Default <Directory>

I am having a problem setting up a virtual directory so that when I type
'blah' into a webbrowser it comes up with the site that is hosted on the
local machine

Could anybody point me in the right direction please. I have read through as
much documentation as I can but still can't find out how to do it.

Any help would be much appreciated

-Mike


  #2 (permalink)  
Old 08-26-2004
Davide Bianchi
 
Posts: n/a
Default Re: <Directory>

On 2004-08-26, Mike Morley <nobody@nowhere.com> wrote:
> I am having a problem setting up a virtual directory so that when I type
> 'blah' into a webbrowser it comes up with the site that is hosted on the
> local machine


If you want to have a VIRTUAL HOST, configure it in Apache and
instruct the local machine that 'blah' refer to himself, overriding
the DNS. Otherwise, explain better what you want to do.

Davide

--
It will be advantageous to cross the great stream ... the Dragon is on
the wing in the Sky ... the Great Man rouses himself to his Work.
  #3 (permalink)  
Old 08-26-2004
Mike Morley
 
Posts: n/a
Default Re: <Directory>

Thanks for the quick reply.

My server name is 'planet-x'. When this is typed in the address bar of a
webbrowser the server default site comes up (Not apache installed). I have
added a directory to this called 'kick-fit'. When I type 'kick-fit' into an
address bar I want the site to appear as
http://kick-fit/. The code in the httpd.conf file I am attempting to use to
make this work is as follows.
-----------------------------------------------------------------------
Alias /kick-fit "C:\Program Files\Apache Group\Apache2\http_docs\kick-fit"

<Directory "C:\Program Files\Apache Group\Apache2\http_docs\kick-fit">
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
</Directory>
-----------------------------------------------------------------------

I guess my question is ... Am I doing this correctly? If so why isn't it
working? Am I being and idiot and missing something really basic?

Sorry about this question. I know it is most likley a very simple one but I
have only been configuring apache for 24hr. Before that all I did was use
it.

Thanks again.

-Mike

"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrncirp0i.2f7.davideyeahsure@fogg.onlyforfun .net...
> On 2004-08-26, Mike Morley <nobody@nowhere.com> wrote:
> > I am having a problem setting up a virtual directory so that when I type
> > 'blah' into a webbrowser it comes up with the site that is hosted on the
> > local machine

>
> If you want to have a VIRTUAL HOST, configure it in Apache and
> instruct the local machine that 'blah' refer to himself, overriding
> the DNS. Otherwise, explain better what you want to do.
>
> Davide
>
> --
> It will be advantageous to cross the great stream ... the Dragon is on
> the wing in the Sky ... the Great Man rouses himself to his Work.



  #4 (permalink)  
Old 08-26-2004
Davide Bianchi
 
Posts: n/a
Default Re: <Directory>

On 2004-08-26, Mike Morley <nobody@nowhere.com> wrote:
> http://kick-fit/


This is not a directory, this is a virtual host. For this to work
you need two things: 1. a way for your machine to know that
'kick-fit' is the same server in your network, this is done by
setting up a DNS or overriding it using the hosts file. 2. a
VirtualHost configured in your server.

Davide

--
Money is the root of all evil, and man needs roots
  #5 (permalink)  
Old 08-27-2004
Erik
 
Posts: n/a
Default Re: <Directory>

On Thu, 26 Aug 2004 13:50:47 +0100, "Mike Morley" <nobody@nowhere.com>
wrote:

>I am having a problem setting up a virtual directory so that when I type
>'blah' into a webbrowser it comes up with the site that is hosted on the
>local machine
>
>Could anybody point me in the right direction please. I have read through as
>much documentation as I can but still can't find out how to do it.
>
>Any help would be much appreciated
>
>-Mike
>


make two directories in eg. /var/www or wherever your apache2 site
root is (not necessarily the ServerRoot or sytem root).
one called planet-x and one called kick-fit.

then in httpd.conf you type:

VirtualDocumentRoot /var/www/%0
<Directory /var/www/planet-x >
#all the settings for your planet site
</Directory>
<Directory /var/www/kick-fit >
#all the settings for your kick-fit site
</Directory>

easy (If you know how)

frgr
Erik
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0