I got it work. The problem was, I did not specify the IP addresses which can
access the server

cheers

On Mon, May 5, 2008 at 1:07 PM, Matus UHLAR - fantomas <[EMAIL PROTECTED]>
wrote:

> On 05.05.08 10:40, Nishantha Pradeep wrote:
> > I have a server named as nishantha-lsf and it http-polling is running on
> > port 5280. I can directly access the http-polling service  with the URL
> > http://localhost:5280/http-poll. But I want to access it without
> specifying
> > the port number such as
> >  http://localhost/http-poll. So I used write module's capabilities and I
> add
> > following to my httpd.conf file. Then restarted the apache
> >
> > <VirtualHost *>
> >   ServerName nishantha-lsf
> >   DocumentRoot /var/www/www
> >   <Directory /var/www/www/chat>
> >     Options  +Indexes +MultiViews
> >   </Directory>
> >   AddDefaultCharset UTF-8
> >   RewriteEngine on
> >   RewriteRule http-poll/ http://localhost:5280/http-poll/ [P]
> > </VirtualHost>
>
> using redirect instead of rewrite should be enough, however this will only
> apply when you enter path containing slash after http-poll which is not
> what
> you described.
>
> > But when I enter the URL http://localhost:5280/http-poll, it says you
> dont
> > have permission to access the http-poll on this server.
>
> do you mean, if you enter it WITHOUT the port name?
>
> > However when I
> > specify the port (http://localhost:5280/http-poll/) it allows me to
> accsess.
>
> you are accessing the HTTP polling service, which not apache IIUC.
>
> --
> Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> Atheism is a non-prophet organization.
>
> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to