You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zia Syed <zi...@gmail.com> on 2005/01/05 21:47:27 UTC

[users@httpd] Newbie Need Help

Hi,

I'm new to Apache HTTP. I would like to host squirrelmail webclient on
my apache server with /mail directive e.g http://my.server.com/mail .
So far looking into documentation I found about <VirtualHost>.  I want
to use port 80 for both my normal website as well as for webmail.
According to documentation, with VirtualHost, i can use different
ports, however, this is not want i want to achieve. I want to have
normal website at http://my.server.com and webmail at
http://my.server.com/mail which redirects users to squirrelmail login.
I've pasted the snippet from my httpd.conf file. I know it should be
simple enough to do, but can't find any documentation about it, or
perhaps I'm searching with wrong query term on google.

Please advise.

Thanks,

Zia

------httpd.conf----------

<VirtualHost *>
 ServerSignature email
        DirectoryIndex  index.php index.html index.htm index.shtml
        LogLevel  warn
        HostNameLookups off
</VirtualHost>
<VirtualHost 192.168.0.2>
ServerName melville.homeip.net
ServerAlias *.mail
ServerAdmin postmaster@melville.homeip.net
DocumentRoot /var/www/webmail
</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Nick Kew <ni...@webthing.com>.
On Wed, 5 Jan 2005, Zia Syed wrote:

> Hi,
>
> I'm new to Apache HTTP. I would like to host squirrelmail webclient on
> my apache server with /mail directive e.g http://my.server.com/mail .

Just look up the Alias directive in TFM.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Zia Syed <zi...@gmail.com>.
actually there is index.php in /var/www/webmail which redirects to
/var/www/webmail/src/login.php

Z.


On Wed, 5 Jan 2005 21:35:25 +0000, Zia Syed <zi...@gmail.com> wrote:
> The login.php file is stored at
> /var/www/webmail/src/
> 
> Z.
> 
> 
> On Wed, 05 Jan 2005 16:34:26 -0500, Sean T Allen <se...@usaherbals.com> wrote:
> > And what is the url for the squirrel mail login?
> >
> > Zia Syed wrote:
> >
> > >Hi,
> > >
> > >I'm new to Apache HTTP. I would like to host squirrelmail webclient on
> > >my apache server with /mail directive e.g http://my.server.com/mail .
> > >So far looking into documentation I found about <VirtualHost>.  I want
> > >to use port 80 for both my normal website as well as for webmail.
> > >According to documentation, with VirtualHost, i can use different
> > >ports, however, this is not want i want to achieve. I want to have
> > >normal website at http://my.server.com and webmail at
> > >http://my.server.com/mail which redirects users to squirrelmail login.
> > >I've pasted the snippet from my httpd.conf file. I know it should be
> > >simple enough to do, but can't find any documentation about it, or
> > >perhaps I'm searching with wrong query term on google.
> > >
> > >Please advise.
> > >
> > >Thanks,
> > >
> > >Zia
> > >
> > >------httpd.conf----------
> > >
> > ><VirtualHost *>
> > > ServerSignature email
> > >        DirectoryIndex  index.php index.html index.htm index.shtml
> > >        LogLevel  warn
> > >        HostNameLookups off
> > ></VirtualHost>
> > ><VirtualHost 192.168.0.2>
> > >ServerName melville.homeip.net
> > >ServerAlias *.mail
> > >ServerAdmin postmaster@melville.homeip.net
> > >DocumentRoot /var/www/webmail
> > ></VirtualHost>
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > >For additional commands, e-mail: users-help@httpd.apache.org
> > >
> > >
> > >
> >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Dick Davies <ra...@hellooperator.net>.
* Zia Syed <zi...@gmail.com> [0136 23:36]:
> ScriptAlias didn't work either, giving me permission error. 


That'll be because you haven't told apache to allow files from that path
to be served out. The document root is enabled for this near the top of
Section 2. Try:


# SquirrelMail configuration file fragment for Apache

Alias /mail "/path/to/squirrelmail"
<Directory "/path/to/squirrelmail">
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


> However, I
> moved the webmail folder to /var/www/html (which is DocumentRoot) and
> now with /webmail/ I can access the squirrel login page. This is
> almost what I wanted. :)

-- 
'Blackmail's such an ugly word. I prefer extortion. The x makes it sound cool.'
		-- Bender
Rasputin :: Jack of All Trades - Master of Nuns

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Zia Syed <zi...@gmail.com>.
ScriptAlias didn't work either, giving me permission error. However, I
moved the webmail folder to /var/www/html (which is DocumentRoot) and
now with /webmail/ I can access the squirrel login page. This is
almost what I wanted. :)

Thanks for your helps. 

cheers,



On Wed, 05 Jan 2005 17:57:43 -0500, Sean T Allen <se...@usaherbals.com> wrote:
>  ScriptAlias /mail whatver in the filesystem
>  
>  Zia Syed wrote: 
>  It doesn't work :( As I said, the index.php is in /var/www/webmail forlder,
> which redirects to src/login.php, i tried putting both in the Redirect field
> but no use. Also there is a problem that since i'm behind firewall, I can't
> access melville.homeip.net as homeip.net is from dynamicdns.org. So I want
> sumthing that I can simply redirect to index.php relative to my filesystem,
> rather than http:// . Do u get what I mean? Thanks for ur time and help :)
> Z. On Wed, 05 Jan 2005 17:32:58 -0500, Sean T Allen <se...@usaherbals.com>
> wrote: 
>  Redirect /mail http://melville.homeip.net/src/login.php will do that Zia
> Syed wrote: not necessarily. I will be ok with the src/login.php as long as
> it gets there from /mail. On Wed, 05 Jan 2005 17:05:37 -0500, Sean T Allen
> <se...@usaherbals.com> wrote: do you want the url to stay /mail in the
> browser? Zia Syed wrote: check this out http://melville.homeip.net I want
> the login page to be mapped to http://melville.homeip.net/mail and display
> the main page at http://melville.homeip.net instead. How can i do that?
> Thanks, Z. On Wed, 05 Jan 2005 16:50:50 -0500, Sean T Allen
> <se...@usaherbals.com> wrote: but what is the url that you would currently
> access it at or have you not setup a url yet? if dont have a url yet then
> you are talking about aliasing as in /var/www/webmail/src isnt in your root
> but you want something like ScriptAlias /mail /var/www/webmail/src Zia Syed
> wrote: The login.php file is stored at /var/www/webmail/src/ Z. On Wed, 05
> Jan 2005 16:34:26 -0500, Sean T Allen <se...@usaherbals.com> wrote: And what
> is the url for the squirrel mail login? Zia Syed wrote: Hi, I'm new to
> Apache HTTP. I would like to host squirrelmail webclient on my apache server
> with /mail directive e.g http://my.server.com/mail . So far looking into
> documentation I found about <VirtualHost>. I want to use port 80 for both my
> normal website as well as for webmail. According to documentation, with
> VirtualHost, i can use different ports, however, this is not want i want to
> achieve. I want to have normal website at http://my.server.com and webmail
> at http://my.server.com/mail which redirects users to squirrelmail login.
> I've pasted the snippet from my httpd.conf file. I know it should be simple
> enough to do, but can't find any documentation about it, or perhaps I'm
> searching with wrong query term on google. Please advise. Thanks, Zia
> ------httpd.conf---------- <VirtualHost *> ServerSignature email
> DirectoryIndex index.php index.html index.htm index.shtml LogLevel warn
> HostNameLookups off </VirtualHost> <VirtualHost 192.168.0.2> ServerName
> melville.homeip.net ServerAlias *.mail ServerAdmin
> postmaster@melville.homeip.net DocumentRoot /var/www/webmail </VirtualHost>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org 
>  
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Sean T Allen <se...@usaherbals.com>.
ScriptAlias /mail whatver in the filesystem

Zia Syed wrote:

>It doesn't work :( 
>As I said, the index.php is in /var/www/webmail forlder, which
>redirects to src/login.php, i tried putting both in the Redirect field
>but no use.
>Also there is a problem that since i'm behind firewall, I can't access
>melville.homeip.net as homeip.net is from dynamicdns.org. So I want
>sumthing that I can simply redirect to index.php relative to my
>filesystem, rather than http:// .
>
>Do u get what I mean? 
>
>Thanks for ur time and help :)
>
>Z.
>
>
>On Wed, 05 Jan 2005 17:32:58 -0500, Sean T Allen <se...@usaherbals.com> wrote:
>  
>
>> Redirect /mail http://melville.homeip.net/src/login.php 
>> 
>> will do that
>> 
>> 
>> Zia Syed wrote: 
>> not necessarily. I will be ok with the src/login.php as long as it gets
>>there from /mail. On Wed, 05 Jan 2005 17:05:37 -0500, Sean T Allen
>><se...@usaherbals.com> wrote: 
>> do you want the url to stay /mail in the browser? Zia Syed wrote: check
>>this out http://melville.homeip.net I want the login page to be mapped to
>>http://melville.homeip.net/mail and display the main page at
>>http://melville.homeip.net instead. How can i do that? Thanks, Z. On Wed, 05
>>Jan 2005 16:50:50 -0500, Sean T Allen <se...@usaherbals.com> wrote: but what
>>is the url that you would currently access it at or have you not setup a url
>>yet? if dont have a url yet then you are talking about aliasing as in
>>/var/www/webmail/src isnt in your root but you want something like
>>ScriptAlias /mail /var/www/webmail/src Zia Syed wrote: The login.php file is
>>stored at /var/www/webmail/src/ Z. On Wed, 05 Jan 2005 16:34:26 -0500, Sean
>>T Allen <se...@usaherbals.com> wrote: And what is the url for the squirrel
>>mail login? Zia Syed wrote: Hi, I'm new to Apache HTTP. I would like to host
>>squirrelmail webclient on my apache server with /mail directive e.g
>>http://my.server.com/mail . So far looking into documentation I found about
>><VirtualHost>. I want to use port 80 for both my normal website as well as
>>for webmail. According to documentation, with VirtualHost, i can use
>>different ports, however, this is not want i want to achieve. I want to have
>>normal website at http://my.server.com and webmail at
>>http://my.server.com/mail which redirects users to squirrelmail login. I've
>>pasted the snippet from my httpd.conf file. I know it should be simple
>>enough to do, but can't find any documentation about it, or perhaps I'm
>>searching with wrong query term on google. Please advise. Thanks, Zia
>>------httpd.conf---------- <VirtualHost *> ServerSignature email
>>DirectoryIndex index.php index.html index.htm index.shtml LogLevel warn
>>HostNameLookups off </VirtualHost> <VirtualHost 192.168.0.2> ServerName
>>melville.homeip.net ServerAlias *.mail ServerAdmin
>>postmaster@melville.homeip.net DocumentRoot /var/www/webmail </VirtualHost>
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org 
>> 
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>


Re: [users@httpd] Newbie Need Help

Posted by Zia Syed <zi...@gmail.com>.
It doesn't work :( 
As I said, the index.php is in /var/www/webmail forlder, which
redirects to src/login.php, i tried putting both in the Redirect field
but no use.
Also there is a problem that since i'm behind firewall, I can't access
melville.homeip.net as homeip.net is from dynamicdns.org. So I want
sumthing that I can simply redirect to index.php relative to my
filesystem, rather than http:// .

Do u get what I mean? 

Thanks for ur time and help :)

Z.


On Wed, 05 Jan 2005 17:32:58 -0500, Sean T Allen <se...@usaherbals.com> wrote:
>  Redirect /mail http://melville.homeip.net/src/login.php 
>  
>  will do that
>  
>  
>  Zia Syed wrote: 
>  not necessarily. I will be ok with the src/login.php as long as it gets
> there from /mail. On Wed, 05 Jan 2005 17:05:37 -0500, Sean T Allen
> <se...@usaherbals.com> wrote: 
>  do you want the url to stay /mail in the browser? Zia Syed wrote: check
> this out http://melville.homeip.net I want the login page to be mapped to
> http://melville.homeip.net/mail and display the main page at
> http://melville.homeip.net instead. How can i do that? Thanks, Z. On Wed, 05
> Jan 2005 16:50:50 -0500, Sean T Allen <se...@usaherbals.com> wrote: but what
> is the url that you would currently access it at or have you not setup a url
> yet? if dont have a url yet then you are talking about aliasing as in
> /var/www/webmail/src isnt in your root but you want something like
> ScriptAlias /mail /var/www/webmail/src Zia Syed wrote: The login.php file is
> stored at /var/www/webmail/src/ Z. On Wed, 05 Jan 2005 16:34:26 -0500, Sean
> T Allen <se...@usaherbals.com> wrote: And what is the url for the squirrel
> mail login? Zia Syed wrote: Hi, I'm new to Apache HTTP. I would like to host
> squirrelmail webclient on my apache server with /mail directive e.g
> http://my.server.com/mail . So far looking into documentation I found about
> <VirtualHost>. I want to use port 80 for both my normal website as well as
> for webmail. According to documentation, with VirtualHost, i can use
> different ports, however, this is not want i want to achieve. I want to have
> normal website at http://my.server.com and webmail at
> http://my.server.com/mail which redirects users to squirrelmail login. I've
> pasted the snippet from my httpd.conf file. I know it should be simple
> enough to do, but can't find any documentation about it, or perhaps I'm
> searching with wrong query term on google. Please advise. Thanks, Zia
> ------httpd.conf---------- <VirtualHost *> ServerSignature email
> DirectoryIndex index.php index.html index.htm index.shtml LogLevel warn
> HostNameLookups off </VirtualHost> <VirtualHost 192.168.0.2> ServerName
> melville.homeip.net ServerAlias *.mail ServerAdmin
> postmaster@melville.homeip.net DocumentRoot /var/www/webmail </VirtualHost>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org 
>  
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Sean T Allen <se...@usaherbals.com>.
Redirect /mail http://melville.homeip.net/src/login.php

will do that


Zia Syed wrote:

>not necessarily. I will be ok with the src/login.php as long as it
>gets there from /mail.
>
>
>
>On Wed, 05 Jan 2005 17:05:37 -0500, Sean T Allen <se...@usaherbals.com> wrote:
>  
>
>> do you want the url to stay
>> 
>> /mail
>> 
>> in the browser?
>> 
>> Zia Syed wrote: 
>> check this out http://melville.homeip.net I want the login page to be
>>mapped to http://melville.homeip.net/mail and display the main page at
>>http://melville.homeip.net instead. How can i do that? Thanks, Z. On Wed, 05
>>Jan 2005 16:50:50 -0500, Sean T Allen <se...@usaherbals.com> wrote: 
>> but what is the url that you would currently access it at or have you not
>>setup a url yet? if dont have a url yet then you are talking about aliasing
>>as in /var/www/webmail/src isnt in your root but you want something like
>>ScriptAlias /mail /var/www/webmail/src Zia Syed wrote: The login.php file is
>>stored at /var/www/webmail/src/ Z. On Wed, 05 Jan 2005 16:34:26 -0500, Sean
>>T Allen <se...@usaherbals.com> wrote: And what is the url for the squirrel
>>mail login? Zia Syed wrote: Hi, I'm new to Apache HTTP. I would like to host
>>squirrelmail webclient on my apache server with /mail directive e.g
>>http://my.server.com/mail . So far looking into documentation I found about
>><VirtualHost>. I want to use port 80 for both my normal website as well as
>>for webmail. According to documentation, with VirtualHost, i can use
>>different ports, however, this is not want i want to achieve. I want to have
>>normal website at http://my.server.com and webmail at
>>http://my.server.com/mail which redirects users to squirrelmail login. I've
>>pasted the snippet from my httpd.conf file. I know it should be simple
>>enough to do, but can't find any documentation about it, or perhaps I'm
>>searching with wrong query term on google. Please advise. Thanks, Zia
>>------httpd.conf---------- <VirtualHost *> ServerSignature email
>>DirectoryIndex index.php index.html index.htm index.shtml LogLevel warn
>>HostNameLookups off </VirtualHost> <VirtualHost 192.168.0.2> ServerName
>>melville.homeip.net ServerAlias *.mail ServerAdmin
>>postmaster@melville.homeip.net DocumentRoot /var/www/webmail </VirtualHost>
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org 
>> 
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>


Re: [users@httpd] Newbie Need Help

Posted by Zia Syed <zi...@gmail.com>.
not necessarily. I will be ok with the src/login.php as long as it
gets there from /mail.



On Wed, 05 Jan 2005 17:05:37 -0500, Sean T Allen <se...@usaherbals.com> wrote:
>  do you want the url to stay
>  
>  /mail
>  
>  in the browser?
>  
>  Zia Syed wrote: 
>  check this out http://melville.homeip.net I want the login page to be
> mapped to http://melville.homeip.net/mail and display the main page at
> http://melville.homeip.net instead. How can i do that? Thanks, Z. On Wed, 05
> Jan 2005 16:50:50 -0500, Sean T Allen <se...@usaherbals.com> wrote: 
>  but what is the url that you would currently access it at or have you not
> setup a url yet? if dont have a url yet then you are talking about aliasing
> as in /var/www/webmail/src isnt in your root but you want something like
> ScriptAlias /mail /var/www/webmail/src Zia Syed wrote: The login.php file is
> stored at /var/www/webmail/src/ Z. On Wed, 05 Jan 2005 16:34:26 -0500, Sean
> T Allen <se...@usaherbals.com> wrote: And what is the url for the squirrel
> mail login? Zia Syed wrote: Hi, I'm new to Apache HTTP. I would like to host
> squirrelmail webclient on my apache server with /mail directive e.g
> http://my.server.com/mail . So far looking into documentation I found about
> <VirtualHost>. I want to use port 80 for both my normal website as well as
> for webmail. According to documentation, with VirtualHost, i can use
> different ports, however, this is not want i want to achieve. I want to have
> normal website at http://my.server.com and webmail at
> http://my.server.com/mail which redirects users to squirrelmail login. I've
> pasted the snippet from my httpd.conf file. I know it should be simple
> enough to do, but can't find any documentation about it, or perhaps I'm
> searching with wrong query term on google. Please advise. Thanks, Zia
> ------httpd.conf---------- <VirtualHost *> ServerSignature email
> DirectoryIndex index.php index.html index.htm index.shtml LogLevel warn
> HostNameLookups off </VirtualHost> <VirtualHost 192.168.0.2> ServerName
> melville.homeip.net ServerAlias *.mail ServerAdmin
> postmaster@melville.homeip.net DocumentRoot /var/www/webmail </VirtualHost>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org 
>  
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Sean T Allen <se...@usaherbals.com>.
do you want the url to stay

/mail

in the browser?

Zia Syed wrote:

>check this out http://melville.homeip.net 
>I want the login page to be mapped to http://melville.homeip.net/mail
>and display the main page at http://melville.homeip.net instead.
>
>How can i do that?
>
>Thanks,
>Z.
>
>
>On Wed, 05 Jan 2005 16:50:50 -0500, Sean T Allen <se...@usaherbals.com> wrote:
>  
>
>> but what is the url that you would currently access it at or have you not
>>setup a url yet?
>> 
>> if dont have a url yet then you are talking about aliasing
>> 
>> as in
>> 
>> /var/www/webmail/src isnt in your root but you want something like
>> 
>> ScriptAlias /mail /var/www/webmail/src
>> 
>> 
>> Zia Syed wrote: 
>> The login.php file is stored at /var/www/webmail/src/ Z. On Wed, 05 Jan
>>2005 16:34:26 -0500, Sean T Allen <se...@usaherbals.com> wrote: 
>> And what is the url for the squirrel mail login? Zia Syed wrote: 
>> Hi, I'm new to Apache HTTP. I would like to host squirrelmail webclient on
>>my apache server with /mail directive e.g http://my.server.com/mail . So far
>>looking into documentation I found about <VirtualHost>. I want to use port
>>80 for both my normal website as well as for webmail. According to
>>documentation, with VirtualHost, i can use different ports, however, this is
>>not want i want to achieve. I want to have normal website at
>>http://my.server.com and webmail at http://my.server.com/mail which
>>redirects users to squirrelmail login. I've pasted the snippet from my
>>httpd.conf file. I know it should be simple enough to do, but can't find any
>>documentation about it, or perhaps I'm searching with wrong query term on
>>google. Please advise. Thanks, Zia ------httpd.conf---------- <VirtualHost
>>*> ServerSignature email DirectoryIndex index.php index.html index.htm
>>index.shtml LogLevel warn HostNameLookups off </VirtualHost> <VirtualHost
>>192.168.0.2> ServerName melville.homeip.net ServerAlias *.mail ServerAdmin
>>postmaster@melville.homeip.net DocumentRoot /var/www/webmail </VirtualHost>
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org
>>--------------------------------------------------------------------- To
>>unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
>>commands, e-mail: users-help@httpd.apache.org 
>> 
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>


Re: [users@httpd] Newbie Need Help

Posted by Zia Syed <zi...@gmail.com>.
check this out http://melville.homeip.net 
I want the login page to be mapped to http://melville.homeip.net/mail
and display the main page at http://melville.homeip.net instead.

How can i do that?

Thanks,
Z.


On Wed, 05 Jan 2005 16:50:50 -0500, Sean T Allen <se...@usaherbals.com> wrote:
>  but what is the url that you would currently access it at or have you not
> setup a url yet?
>  
>  if dont have a url yet then you are talking about aliasing
>  
>  as in
>  
>  /var/www/webmail/src isnt in your root but you want something like
>  
>  ScriptAlias /mail /var/www/webmail/src
>  
>  
>  Zia Syed wrote: 
>  The login.php file is stored at /var/www/webmail/src/ Z. On Wed, 05 Jan
> 2005 16:34:26 -0500, Sean T Allen <se...@usaherbals.com> wrote: 
>  And what is the url for the squirrel mail login? Zia Syed wrote: 
>  Hi, I'm new to Apache HTTP. I would like to host squirrelmail webclient on
> my apache server with /mail directive e.g http://my.server.com/mail . So far
> looking into documentation I found about <VirtualHost>. I want to use port
> 80 for both my normal website as well as for webmail. According to
> documentation, with VirtualHost, i can use different ports, however, this is
> not want i want to achieve. I want to have normal website at
> http://my.server.com and webmail at http://my.server.com/mail which
> redirects users to squirrelmail login. I've pasted the snippet from my
> httpd.conf file. I know it should be simple enough to do, but can't find any
> documentation about it, or perhaps I'm searching with wrong query term on
> google. Please advise. Thanks, Zia ------httpd.conf---------- <VirtualHost
> *> ServerSignature email DirectoryIndex index.php index.html index.htm
> index.shtml LogLevel warn HostNameLookups off </VirtualHost> <VirtualHost
> 192.168.0.2> ServerName melville.homeip.net ServerAlias *.mail ServerAdmin
> postmaster@melville.homeip.net DocumentRoot /var/www/webmail </VirtualHost>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional
> commands, e-mail: users-help@httpd.apache.org 
>  
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Sean T Allen <se...@usaherbals.com>.
but what is the url that you would currently access it at or have you 
not setup a url yet?

if dont have a url yet then you are talking about aliasing

as in

/var/www/webmail/src isnt in your root but you want something like

ScriptAlias /mail /var/www/webmail/src


Zia Syed wrote:

>The login.php file is stored at 
>/var/www/webmail/src/
>
>Z.
>
>
>On Wed, 05 Jan 2005 16:34:26 -0500, Sean T Allen <se...@usaherbals.com> wrote:
>  
>
>>And what is the url for the squirrel mail login?
>>
>>Zia Syed wrote:
>>
>>    
>>
>>>Hi,
>>>
>>>I'm new to Apache HTTP. I would like to host squirrelmail webclient on
>>>my apache server with /mail directive e.g http://my.server.com/mail .
>>>So far looking into documentation I found about <VirtualHost>.  I want
>>>to use port 80 for both my normal website as well as for webmail.
>>>According to documentation, with VirtualHost, i can use different
>>>ports, however, this is not want i want to achieve. I want to have
>>>normal website at http://my.server.com and webmail at
>>>http://my.server.com/mail which redirects users to squirrelmail login.
>>>I've pasted the snippet from my httpd.conf file. I know it should be
>>>simple enough to do, but can't find any documentation about it, or
>>>perhaps I'm searching with wrong query term on google.
>>>
>>>Please advise.
>>>
>>>Thanks,
>>>
>>>Zia
>>>
>>>------httpd.conf----------
>>>
>>><VirtualHost *>
>>>ServerSignature email
>>>       DirectoryIndex  index.php index.html index.htm index.shtml
>>>       LogLevel  warn
>>>       HostNameLookups off
>>></VirtualHost>
>>><VirtualHost 192.168.0.2>
>>>ServerName melville.homeip.net
>>>ServerAlias *.mail
>>>ServerAdmin postmaster@melville.homeip.net
>>>DocumentRoot /var/www/webmail
>>></VirtualHost>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>


Re: [users@httpd] Newbie Need Help

Posted by Zia Syed <zi...@gmail.com>.
The login.php file is stored at 
/var/www/webmail/src/

Z.


On Wed, 05 Jan 2005 16:34:26 -0500, Sean T Allen <se...@usaherbals.com> wrote:
> And what is the url for the squirrel mail login?
> 
> Zia Syed wrote:
> 
> >Hi,
> >
> >I'm new to Apache HTTP. I would like to host squirrelmail webclient on
> >my apache server with /mail directive e.g http://my.server.com/mail .
> >So far looking into documentation I found about <VirtualHost>.  I want
> >to use port 80 for both my normal website as well as for webmail.
> >According to documentation, with VirtualHost, i can use different
> >ports, however, this is not want i want to achieve. I want to have
> >normal website at http://my.server.com and webmail at
> >http://my.server.com/mail which redirects users to squirrelmail login.
> >I've pasted the snippet from my httpd.conf file. I know it should be
> >simple enough to do, but can't find any documentation about it, or
> >perhaps I'm searching with wrong query term on google.
> >
> >Please advise.
> >
> >Thanks,
> >
> >Zia
> >
> >------httpd.conf----------
> >
> ><VirtualHost *>
> > ServerSignature email
> >        DirectoryIndex  index.php index.html index.htm index.shtml
> >        LogLevel  warn
> >        HostNameLookups off
> ></VirtualHost>
> ><VirtualHost 192.168.0.2>
> >ServerName melville.homeip.net
> >ServerAlias *.mail
> >ServerAdmin postmaster@melville.homeip.net
> >DocumentRoot /var/www/webmail
> ></VirtualHost>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie Need Help

Posted by Sean T Allen <se...@usaherbals.com>.
And what is the url for the squirrel mail login?

Zia Syed wrote:

>Hi,
>
>I'm new to Apache HTTP. I would like to host squirrelmail webclient on
>my apache server with /mail directive e.g http://my.server.com/mail .
>So far looking into documentation I found about <VirtualHost>.  I want
>to use port 80 for both my normal website as well as for webmail.
>According to documentation, with VirtualHost, i can use different
>ports, however, this is not want i want to achieve. I want to have
>normal website at http://my.server.com and webmail at
>http://my.server.com/mail which redirects users to squirrelmail login.
>I've pasted the snippet from my httpd.conf file. I know it should be
>simple enough to do, but can't find any documentation about it, or
>perhaps I'm searching with wrong query term on google.
>
>Please advise.
>
>Thanks,
>
>Zia
>
>------httpd.conf----------
>
><VirtualHost *>
> ServerSignature email
>        DirectoryIndex  index.php index.html index.htm index.shtml
>        LogLevel  warn
>        HostNameLookups off
></VirtualHost>
><VirtualHost 192.168.0.2>
>ServerName melville.homeip.net
>ServerAlias *.mail
>ServerAdmin postmaster@melville.homeip.net
>DocumentRoot /var/www/webmail
></VirtualHost>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>


Re: [users@httpd] Newbie Need Help

Posted by Jean-Marc Lachaine <jm...@tbaytel.net>.
I'm not much more than a Newbie myself but I handle all of my redirection
using redirects in my conf file. Lots of good info in the Apache docs about
redirection that way. The gurus may have better ideas though. Best of luck.

JML

----- Original Message ----- 
From: "Zia Syed" <zi...@gmail.com>
To: <us...@httpd.apache.org>
Sent: Wednesday, January 05, 2005 3:47 PM
Subject: [users@httpd] Newbie Need Help


> Hi,
>
> I'm new to Apache HTTP. I would like to host squirrelmail webclient on
> my apache server with /mail directive e.g http://my.server.com/mail .
> So far looking into documentation I found about <VirtualHost>.  I want
> to use port 80 for both my normal website as well as for webmail.
> According to documentation, with VirtualHost, i can use different
> ports, however, this is not want i want to achieve. I want to have
> normal website at http://my.server.com and webmail at
> http://my.server.com/mail which redirects users to squirrelmail login.
> I've pasted the snippet from my httpd.conf file. I know it should be
> simple enough to do, but can't find any documentation about it, or
> perhaps I'm searching with wrong query term on google.
>
> Please advise.
>
> Thanks,
>
> Zia
>
> ------httpd.conf----------
>
> <VirtualHost *>
>  ServerSignature email
>         DirectoryIndex  index.php index.html index.htm index.shtml
>         LogLevel  warn
>         HostNameLookups off
> </VirtualHost>
> <VirtualHost 192.168.0.2>
> ServerName melville.homeip.net
> ServerAlias *.mail
> ServerAdmin postmaster@melville.homeip.net
> DocumentRoot /var/www/webmail
> </VirtualHost>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org