in reply to Re^3: (OT) cgi: relative v. absolute paths, Apache
in thread (OT) cgi: relative v. absolute paths, Apache
Almost. You convert from virtual to real too early.
The current virtual directory is /cgi-bin, and the ../ directory refers to /cgi-bin's parent directory, the root directory. Then you descend to the my_imgs directory and the pics.jpg file. The final url is therefore /my_imgs/pic.jpg. The server maps that url to the file htdocs/my_imgs/pic.jpg.
|
|---|