t*****t 发帖数: 72 | 1 在我当前目录下有一个perl文件, /home/myname/cgi/c.pl (文件属性755)
我在本地机上的浏览器上键入:
http://localhost/home/myname/cgi/c.pl?color=red&shade=dark
返回如下错误信息:
Not found
The rewuested URL /home/myname/cgi/c.pl was not found on this surver. |
f********h 发帖数: 149 | 2 it depends on the configuration of the web server. Sometimes
you don't need to specify the cgi directory.
【在 t*****t 的大作中提到】 : 在我当前目录下有一个perl文件, /home/myname/cgi/c.pl (文件属性755) : 我在本地机上的浏览器上键入: : http://localhost/home/myname/cgi/c.pl?color=red&shade=dark : 返回如下错误信息: : Not found : The rewuested URL /home/myname/cgi/c.pl was not found on this surver.
|
t*****t 发帖数: 72 | 3 how to configure the web server? I am using apache as the HTTP
server. //bow.
【在 f********h 的大作中提到】 : it depends on the configuration of the web server. Sometimes : you don't need to specify the cgi directory.
|
f********h 发帖数: 149 | 4 I assume you are using unix/linux, go to the apapche configuration directory
and look at the httpd.conf. Also check the apache log file for additional
information.(error_log)
【在 t*****t 的大作中提到】 : how to configure the web server? I am using apache as the HTTP : server. //bow.
|
t*****t 发帖数: 72 | 5 yep, i am using Linux. but how can i relate these configurations to
my problems. Or if I just want to test my cgi code at the local machine,
what should I do? many thanks
【在 f********h 的大作中提到】 : I assume you are using unix/linux, go to the apapche configuration directory : and look at the httpd.conf. Also check the apache log file for additional : information.(error_log)
|
t*****t 发帖数: 72 | 6 o, my script worked after I put it in the public_html/cgi-bin
directory, and visit it through any browsers.
Still wondering if or not there are any ways that I can test it
by "localhost" or sth not bound to my website. //bow
【在 t*****t 的大作中提到】 : yep, i am using Linux. but how can i relate these configurations to : my problems. Or if I just want to test my cgi code at the local machine, : what should I do? many thanks
|
f********h 发帖数: 149 | 7 everything is specified in the httpd.conf.
Take a look and play with it.
【在 t*****t 的大作中提到】 : o, my script worked after I put it in the public_html/cgi-bin : directory, and visit it through any browsers. : Still wondering if or not there are any ways that I can test it : by "localhost" or sth not bound to my website. //bow
|
t*****t 发帖数: 72 | 8 how to update the server after I changed something in
httpd.conf? many thanks...//bow
【在 f********h 的大作中提到】 : everything is specified in the httpd.conf. : Take a look and play with it.
|
f********h 发帖数: 149 | 9 /etc/init.d/aparche restart
【在 t*****t 的大作中提到】 : how to update the server after I changed something in : httpd.conf? many thanks...//bow
|
t*****t 发帖数: 72 | 10 got it, thanks.
【在 f********h 的大作中提到】 : /etc/init.d/aparche restart
|