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, uhlar@xxxxxxxxxxx ; 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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx