|
Related Topics:
| Virtual host setup for Horde package? - Hi, I've installed Horde+IMP on my system but I want to access it via instead of so I put the following in my *:80>
local virtual host config for testing setup problem - Ive got a dynddns address which works fine frmo the outside world. I want to set up another virtual host for testing purposes only from my machine. from Named * *>..
Virtual Domain setup question - I am setting up a Fedora server, and trying to configure Virtual Hosts via Apache that ships with the Fedora. I kindof got it working, but not quite. I have it setup with the default server, a 1 virtual host at the moment as a..
virtual host question - hi all i'm using to redir (for example) the url to how can i set a virtual host for configure ? i've tried ..
Virtual Host Question - I am setting up my Mandrake 10 station as a machine for web sites. I generally use PHP for these types of sites. I want to setup my machine to allow virtual as websites. For example under Windows, I have the following
|
|
| Author |
Message |
External

Since: Feb 20, 2008 Posts: 4
|
(Msg. 1) Posted: Wed Feb 20, 2008 1:45 am
Post subject: Virtual host setup question Archived from groups: alt>apache>configuration (more info?)
|
|
|
I have a local webserver called mike
The Document root is /www/htdocs
So I access it from another machine using http://mike
The Problem - what I want to do is if I type http://mike/cms then I
want it to access /www/cms not /www/htdocs/cms
I can't work out how to do it and am pulling out my hair
Is this possible and if so how do I do it
Any help would be appreciated >> Stay informed about: Virtual host setup question |
|
| Back to top |
|
 |  |
External

Since: Feb 20, 2008 Posts: 4
|
(Msg. 2) Posted: Wed Feb 20, 2008 2:51 am
Post subject: Re: Virtual host setup question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 20 Feb, 09:49, Davide Bianchi <davideyeahs....DeleteThis@onlyforfun.net>
wrote:
> On 2008-02-20, mike_solomon <g....DeleteThis@solomontribe.co.uk> wrote:
>
> > The Problem - what I want to do is if I typehttp://mike/cmsthen I
> > want it to access /www/cms not /www/htdocs/cms
>
> You need an alias directive and a directory block to define the
> permissions on your directory
>
> Something like
>
> Alias /cms/ "/www/cms/"
> <Directory "/www/cms">
> Options...
> ...other directives as required
> </Directory>
>
> See the documentation for more informations.
> Be sure the permissions on the filesystems are correct for the
> /www/cms directory.
>
> Davide
>
> --
> Some are born to Enlightenment, some achieve Enlightenment,
> and others have Enlightenment larted upon them.
> --Greg
Thanks for that
I set up the following
<VirtualHost *>
DocumentRoot "/srv/www/htdocs"
Alias /cms/ "/srv/www/cms/"
<Directory "/srv/www/cms">
allow from all
Options Indexes +FollowSymLinks
</Directory>
<Directory "/srv/www/htdocs">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
This almost works the way I want but I have to have a directory /srv/
www/htdocs/cms or it fails
Is there a way of dispensing with the empty directory cms? >> Stay informed about: Virtual host setup question |
|
| Back to top |
|
 |  |
External

Since: Feb 20, 2008 Posts: 4
|
(Msg. 3) Posted: Wed Feb 20, 2008 3:39 am
Post subject: Re: Virtual host setup question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 20 Feb, 11:32, "phantom" <nob....DeleteThis@blueyonder.invalid> wrote:
> "mike_solomon" <g....DeleteThis@solomontribe.co.uk> wrote in message
>
> news:6c0762cf-6832-43dc-b281-729c10db1554@t66g2000hsf.googlegroups.com...
>
>
>
> > On 20 Feb, 09:49, Davide Bianchi <davideyeahs....DeleteThis@onlyforfun.net>
> > wrote:
> >> On 2008-02-20, mike_solomon <g....DeleteThis@solomontribe.co.uk> wrote:
>
> >> > The Problem - what I want to do is if I typehttp://mike/cmsthenI
> >> > want it to access /www/cms not /www/htdocs/cms
>
> >> You need an alias directive and a directory block to define the
> >> permissions on your directory
>
> >> Something like
>
> >> Alias /cms/ "/www/cms/"
> >> <Directory "/www/cms">
> >> Options...
> >> ...other directives as required
> >> </Directory>
>
> >> See the documentation for more informations.
> >> Be sure the permissions on the filesystems are correct for the
> >> /www/cms directory.
>
> >> Davide
>
> >> --
> >> Some are born to Enlightenment, some achieve Enlightenment,
> >> and others have Enlightenment larted upon them.
> >> --Greg
>
> > Thanks for that
>
> > I set up the following
>
> > <VirtualHost *>
> > DocumentRoot "/srv/www/htdocs"
>
> > Alias /cms/ "/srv/www/cms/"
>
> > <Directory "/srv/www/cms">
> > allow from all
> > Options Indexes +FollowSymLinks
> > </Directory>
>
> > <Directory "/srv/www/htdocs">
> > allow from all
> > Options +Indexes
> > </Directory>
> > </VirtualHost>
>
> > This almost works the way I want but I have to have a directory /srv/
> > www/htdocs/cms or it fails
>
> > Is there a way of dispensing with the empty directory cms?
>
> presumablyhttp://mike/cms/works, buthttp://mike/cmsdoes not?
> change your alias line to (no trailing slash):
> Alias /cms /srv/www/cms
Both http://mike/cms & http://mike/cms work and read from the
directory /srv/www/cms but only if /srv/www/htdocs/cms exists >> Stay informed about: Virtual host setup question |
|
| Back to top |
|
 |  |
External

Since: Feb 20, 2008 Posts: 4
|
(Msg. 4) Posted: Wed Feb 20, 2008 5:59 am
Post subject: Re: Virtual host setup question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 20 Feb, 13:13, "phantom" <nob... DeleteThis @blueyonder.invalid> wrote:
> "mike_solomon" <g... DeleteThis @solomontribe.co.uk> wrote in message
>
> news:e69991d3-3e55-4def-b275-f483d2c96e17@v3g2000hsc.googlegroups.com...
>
>
>
> > On 20 Feb, 11:32, "phantom" <nob... DeleteThis @blueyonder.invalid> wrote:
> >> "mike_solomon" <g... DeleteThis @solomontribe.co.uk> wrote in message
>
> >>news:6c0762cf-6832-43dc-b281-729c10db1554@t66g2000hsf.googlegroups.com...
>
> >> > On 20 Feb, 09:49, Davide Bianchi <davideyeahs... DeleteThis @onlyforfun.net>
> >> > wrote:
> >> >> On 2008-02-20, mike_solomon <g... DeleteThis @solomontribe.co.uk> wrote:
>
> >> >> > The Problem - what I want to do is if I typehttp://mike/cmsthenI
> >> >> > want it to access /www/cms not /www/htdocs/cms
>
> >> >> You need an alias directive and a directory block to define the
> >> >> permissions on your directory
>
> >> >> Something like
>
> >> >> Alias /cms/ "/www/cms/"
> >> >> <Directory "/www/cms">
> >> >> Options...
> >> >> ...other directives as required
> >> >> </Directory>
>
> >> >> See the documentation for more informations.
> >> >> Be sure the permissions on the filesystems are correct for the
> >> >> /www/cms directory.
>
> >> >> Davide
>
> >> >> --
> >> >> Some are born to Enlightenment, some achieve Enlightenment,
> >> >> and others have Enlightenment larted upon them.
> >> >> --Greg
>
> >> > Thanks for that
>
> >> > I set up the following
>
> >> > <VirtualHost *>
> >> > DocumentRoot "/srv/www/htdocs"
>
> >> > Alias /cms/ "/srv/www/cms/"
>
> >> > <Directory "/srv/www/cms">
> >> > allow from all
> >> > Options Indexes +FollowSymLinks
> >> > </Directory>
>
> >> > <Directory "/srv/www/htdocs">
> >> > allow from all
> >> > Options +Indexes
> >> > </Directory>
> >> > </VirtualHost>
>
> >> > This almost works the way I want but I have to have a directory /srv/
> >> > www/htdocs/cms or it fails
>
> >> > Is there a way of dispensing with the empty directory cms?
>
> >> presumablyhttp://mike/cms/works, buthttp://mike/cmsdoesnot?
> >> change your alias line to (no trailing slash):
> >> Alias /cms /srv/www/cms
>
> > Bothhttp://mike/cms&http://mike/cms work and read from the
> > directory /srv/www/cms but only if /srv/www/htdocs/cms exists
>
> Was that with or without the change I suggested?
sorry u were correct - removing the trailing slash fixed the problem
Thanks >> Stay informed about: Virtual host setup question |
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2994
|
(Msg. 5) Posted: Wed Feb 20, 2008 10:49 am
Post subject: Re: Virtual host setup question [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2007 Posts: 66
|
(Msg. 6) Posted: Wed Feb 20, 2008 11:32 am
Post subject: Re: Virtual host setup question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"mike_solomon" <gg RemoveThis @solomontribe.co.uk> wrote in message
news:6c0762cf-6832-43dc-b281-729c10db1554@t66g2000hsf.googlegroups.com...
> On 20 Feb, 09:49, Davide Bianchi <davideyeahs... RemoveThis @onlyforfun.net>
> wrote:
>> On 2008-02-20, mike_solomon <g... RemoveThis @solomontribe.co.uk> wrote:
>>
>> > The Problem - what I want to do is if I typehttp://mike/cmsthen I
>> > want it to access /www/cms not /www/htdocs/cms
>>
>> You need an alias directive and a directory block to define the
>> permissions on your directory
>>
>> Something like
>>
>> Alias /cms/ "/www/cms/"
>> <Directory "/www/cms">
>> Options...
>> ...other directives as required
>> </Directory>
>>
>> See the documentation for more informations.
>> Be sure the permissions on the filesystems are correct for the
>> /www/cms directory.
>>
>> Davide
>>
>> --
>> Some are born to Enlightenment, some achieve Enlightenment,
>> and others have Enlightenment larted upon them.
>> --Greg
>
> Thanks for that
>
> I set up the following
>
> <VirtualHost *>
> DocumentRoot "/srv/www/htdocs"
>
> Alias /cms/ "/srv/www/cms/"
>
> <Directory "/srv/www/cms">
> allow from all
> Options Indexes +FollowSymLinks
> </Directory>
>
>
> <Directory "/srv/www/htdocs">
> allow from all
> Options +Indexes
> </Directory>
> </VirtualHost>
>
> This almost works the way I want but I have to have a directory /srv/
> www/htdocs/cms or it fails
>
> Is there a way of dispensing with the empty directory cms?
presumably http://mike/cms/ works, but http://mike/cms does not?
change your alias line to (no trailing slash):
Alias /cms /srv/www/cms >> Stay informed about: Virtual host setup question |
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2994
|
(Msg. 7) Posted: Wed Feb 20, 2008 12:16 pm
Post subject: Re: Virtual host setup question [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2007 Posts: 66
|
(Msg. 8) Posted: Wed Feb 20, 2008 1:13 pm
Post subject: Re: Virtual host setup question [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"mike_solomon" <gg RemoveThis @solomontribe.co.uk> wrote in message
news:e69991d3-3e55-4def-b275-f483d2c96e17@v3g2000hsc.googlegroups.com...
> On 20 Feb, 11:32, "phantom" <nob... RemoveThis @blueyonder.invalid> wrote:
>> "mike_solomon" <g... RemoveThis @solomontribe.co.uk> wrote in message
>>
>> news:6c0762cf-6832-43dc-b281-729c10db1554@t66g2000hsf.googlegroups.com...
>>
>>
>>
>> > On 20 Feb, 09:49, Davide Bianchi <davideyeahs... RemoveThis @onlyforfun.net>
>> > wrote:
>> >> On 2008-02-20, mike_solomon <g... RemoveThis @solomontribe.co.uk> wrote:
>>
>> >> > The Problem - what I want to do is if I typehttp://mike/cmsthenI
>> >> > want it to access /www/cms not /www/htdocs/cms
>>
>> >> You need an alias directive and a directory block to define the
>> >> permissions on your directory
>>
>> >> Something like
>>
>> >> Alias /cms/ "/www/cms/"
>> >> <Directory "/www/cms">
>> >> Options...
>> >> ...other directives as required
>> >> </Directory>
>>
>> >> See the documentation for more informations.
>> >> Be sure the permissions on the filesystems are correct for the
>> >> /www/cms directory.
>>
>> >> Davide
>>
>> >> --
>> >> Some are born to Enlightenment, some achieve Enlightenment,
>> >> and others have Enlightenment larted upon them.
>> >> --Greg
>>
>> > Thanks for that
>>
>> > I set up the following
>>
>> > <VirtualHost *>
>> > DocumentRoot "/srv/www/htdocs"
>>
>> > Alias /cms/ "/srv/www/cms/"
>>
>> > <Directory "/srv/www/cms">
>> > allow from all
>> > Options Indexes +FollowSymLinks
>> > </Directory>
>>
>> > <Directory "/srv/www/htdocs">
>> > allow from all
>> > Options +Indexes
>> > </Directory>
>> > </VirtualHost>
>>
>> > This almost works the way I want but I have to have a directory /srv/
>> > www/htdocs/cms or it fails
>>
>> > Is there a way of dispensing with the empty directory cms?
>>
>> presumablyhttp://mike/cms/works, buthttp://mike/cmsdoes not?
>> change your alias line to (no trailing slash):
>> Alias /cms /srv/www/cms
>
> Both http://mike/cms & http://mike/cms work and read from the
> directory /srv/www/cms but only if /srv/www/htdocs/cms exists
Was that with or without the change I suggested? >> Stay informed about: Virtual host setup question |
|
| Back to top |
|
 |  |
|