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.
In reply to Re^4: (OT) cgi: relative v. absolute paths, Apache
by ikegami
in thread (OT) cgi: relative v. absolute paths, Apache
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |