Sorry for any mistakes. English is not my native language
I can't find any settings for redirection (no .htaccess or mod_rewrite options).
System: CentOS release 6.6. Apache/2.2.15
Workaround: I moved virtual directory from "/nrdp_dir" to "/". Not elegant, but it work's.
Notice: In this situation in nsclient.ini address parameter must contain "/" at the end, otherwise nscp will use default value for "path" variable ("/nrdp/server" will be added to url).
Notice: "NSCP-0.5.0.65" is used. In this version parameter "token" can be used.
I tested nrdp with send_nrdp script for Linux and NCPA client for Windows, checked httpd service logs, and I found that every time, every query get 301 HTTP response first time, than nrdp_client resent data with 200 HTTP response.
I create test virual directory: (add /etc/httpd/conf.d/30-test.conf with only string "alias /test /usr/local/test"), then restarted httpd service.
Run command: curl -I https://localhost/test -k
HTTP/1.1 301 Moved Permanently
Date: Fri, 03 Feb 2017 06:27:37 GMT
Server: Apache/2.2.15 (CentOS)
Content-Type: text/html; charset=iso-8859-1
I have redirection to the same url. I don't understand this.