 |
|
 |
|
Next: The file:// protocol
|
| 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
wrote:
> On 2008-02-20, mike_solomon 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" wrote:
> "mike_solomon" wrote in message
>
>
>
>
>
> > On 20 Feb, 09:49, Davide Bianchi
> > wrote:
> >> On 2008-02-20, mike_solomon 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" wrote:
> "mike_solomon" wrote in message
>
>
>
>
>
> > On 20 Feb, 11:32, "phantom" wrote:
> >> "mike_solomon" wrote in message
>
> >>
>
> >> > On 20 Feb, 09:49, Davide Bianchi
> >> > wrote:
> >> >> On 2008-02-20, mike_solomon 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" wrote in message
> On 20 Feb, 09:49, Davide Bianchi
> wrote:
>> On 2008-02-20, mike_solomon 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" wrote in message
> On 20 Feb, 11:32, "phantom" wrote:
>> "mike_solomon" wrote in message
>>
>>
>>
>>
>>
>> > On 20 Feb, 09:49, Davide Bianchi
>> > wrote:
>> >> On 2008-02-20, mike_solomon 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 |
|
 |  |
| Related Topics: | Virtual host setup for Horde package? - Hi, I've installed Horde+IMP on my system but I want to access it via "mail.myhost.com" instead of "myhost.com/horde/imp/" so I put the following in my Vhosts.conf: <VirtualHost *:80> ServerName mail.myhost.com ...
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 accessible only from my machine. from vhosts.conf ################# Named VirtualHosts NameVirtualHost * <VirtualHost *>....
Virtual Domain setup question - Greetings, 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 configured as a..
virtual host question - hi all i'm using www.dyndns.org to redir (for example) the url xxx.dyndns.org/site to my.ip/site how can i set a virtual host for configure xxx.dyndns.org/site ? i've tried NameVirtualHost xxx.dnsalias.com/site <VirtualHost xxx.dnsalias.com/site&g...
Virtual Host Question - I am setting up my Mandrake 10 station as a development machine for web sites. I generally use PHP for these types of sites. I want to setup my machine to allow virtual directories as websites. For example under Windows, I have the following directory.... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|