On Tue, Jan 11, 2022 at 6:17 AM Nat Taylor wrote:
>
> Is it possible to get http.server.CGIHTTPRequestHandler to run a symlink-ed
> script?
>
> In the example below, GET /cgi-bin/test.py results in a 404 because it is a
> symlink.
>
> % mkdir -p test/cgi-bin
> % cd test
> % vi test.py
> % chmod +x
Hi
Maybe you have some restrictions on file system level. Some selinux for
example.
I try similar steps on my local 'linux mint' and ... linked script is
called my http.server without errors.
Here is my 'tree':
├── cgi-bin
│ └── test.py -> ../orig.py
└── orig.py
All files are executab
Is it possible to get http.server.CGIHTTPRequestHandler to run a symlink-ed
script?
In the example below, GET /cgi-bin/test.py results in a 404 because it is a
symlink.
% mkdir -p test/cgi-bin
% cd test
% vi test.py
% chmod +x test.py
% ln -s test.py cgi-bin
% cp test.py cgi-bin/test2.py
% chmod