November 22, 2024, 08:34:21 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Apache Error "(36) File name too long;  (Read 8324 times)

Offline anybody1234

  • Linux Noob !
  • *
  • Posts: 29
Apache Error "(36) File name too long;
« on: November 04, 2005, 10:13:52 AM »
Hello everyone,

I have an issue witht the apache setup ;
I have setup apache on port 8000 and a proxy on port 80 that will simply redirect any port requests on port 80 to port 8000; and it worked fine for normal access to pages;
But whenever a submit is made apahce seems to generate a error and It gives me page canot be found error when that particular page exists in the root html folder;
I get the error in apache logs as
Code: [Select]

[root@ proxy root]# tail -f /usr/local/apache2/logs/error_log

[Fri Nov 04 15:41:46 2005] [error] [client xx.xx.xx.xxx] (36)File name too long: access to /rxmaster/bin/mknode.cgi?email=testit@broadban.net&hostname=node-01&faction=mknode&domain=&eth0ip=&eth1ip=&eth0netmask=&eth1netmask=&gateway=&nameserver1=&nameserver2=&rootpwd=&ip_pdc=&pdc=&ip_bdc=&bdc=&pamdomain=&pppoe_user=&pppoe_pass=&ppp_user=&ppp_passwd=&ppp_string=&ppp_num=&ppp_timeout=&ppp_type=none&ppp_port=ttyS1&edition=Choose failed
[Fri Nov 04 15:41:53 2005] [error] [client xx.xx.xx.xxx] File does not exist: /rxl/rxmaster/bin/adminmaster.cgi?faction=top, referer: http://xx.xx.xx.xxx/rxmaster/
[Fri Nov 04 15:41:53 2005] [error] [client xx.xx.xx.xxx] File does not exist: /rxl/rxmaster/bin/adminmaster.cgi?faction=none, referer: http://xx.xx.xx.xxx/rxmaster/
[Fri Nov 04 15:41:54 2005] [error] [client xx.xx.xx.xxx] File does not exist: /rxl/rxmaster/bin/adminmaster.cgi?faction=login, referer: http://xx.xx.xx.xxx/rxmaster/


Now when I normally run apache on port 80 without proxy redirect This problem does not exist and my proxy does nothing more than a simple port redirection iem reditrect requeston 80 port to 8000 port
Does any body have some ideas on why
Server: Apache/2.0.54 (Unix)
gives error like
[Fri Nov 04 15:41:53 2005] [error] [client xx.xx.xx.xxx] File does not exist: /rxl/rxmaster/bin/adminmaster.cgi?faction=top, referer: http://xx.xx.xx.xxx/rxmaster/

Any help would be appreciated..

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Apache Error "(36) File name too long;
« Reply #1 on: November 04, 2005, 02:25:53 PM »
I am not getting idea that why you are using a proxy server to redirect request to port 8000, why not use iptables ?

Just add following line in ur startup script so that it executes everytime your internet starts
Code: [Select]
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8000

Offline anybody1234

  • Linux Noob !
  • *
  • Posts: 29
Apache Error "(36) File name too long;
« Reply #2 on: November 05, 2005, 07:36:56 AM »
HI thanks once again for your reply

You are right in sugesting using iptables for port redirection
Buit reason for using proxy server for port redirection is
that  the Logs generated by my proxy server gives me  more info about client requests  than the logs generated by apache;Okay any way I will try with Ipatbles redirection and let you know the status ;
Thanks