mardi 22 janvier 2019

Running CGI scripts on local server

I have some web pages(normally used on a router to configure settings) on my local PC. In order to make them work exactly as they work on the router, I have installed an Apache server on my ubuntu machine and put those html files/project in my local

/var/www

I am able to open localhost/index.htm and see the main menu and everything. The problem is that the index.htm page has some some hyperlinks to other pages e.g.)info_log.cgi

I dont see any info_log.cgi in my project folder but i do see info_log.htm in a cgi-bin folder (along with all other *.htm files which are referenced as *.cgi in index.htm).

My question is how can I open these pages successfully from index.htm. Currently if I hover on the "System Log" link the destination is displayed as "localhost/cgi-bin/info_log.cgi?lang=en". Clicking on it shows

"Not Found The requested URL /cgi-bin/info_log.cgi was not found on this server"




Aucun commentaire:

Enregistrer un commentaire