avatar
f*h
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.

avatar
t*t
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.

avatar
f*h
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.

avatar
t*t
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)

avatar
t*t
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

avatar
f*h
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

avatar
t*t
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.

avatar
f*h
9
/etc/init.d/aparche restart

【在 t*****t 的大作中提到】
: how to update the server after I changed something in
: httpd.conf? many thanks...//bow

avatar
t*t
10
got it, thanks.

【在 f********h 的大作中提到】
: /etc/init.d/aparche restart
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。