About Using ProxyPass Directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The application I want to deploy behind the reverse proxy is in the E:\programming\visual_studio_2017\Projects\currency_converter\x64\Release directory on my computer, and I got a free subdomain from https://www.subdomain.com which forwards to my external IP address which I got from searching "my ip" in my browser.  The URL for it is https://dragonscurrencyconv.com.nu.  Right now it won't get to the app at all because although I've set up port forwarding, my app still can't talk to the Internet publicly.  I want to try setting up a reverse proxy again.  

The front-end _javascript_ code in my app sends a GET request to the server code I wrote in C++ that asks for the currency API access key so it can use it to get the list of currencies.  The path URI for the access key is "/?q=accesskey".  I want to configure this on the ProxyPass as well so that it'd route to reverse proxy server correctly.  Right now my reverse proxy configuration looks like this:

"
<Directory "E:/programming/visual_studio_2017/Projects/currency_converter/x64/Release">
Options All​
Options Indexes FollowSymLinks​
    AllowOverride None​
    Require all granted​
</Directory>​
<VirtualHost *:8000>​
    ServerAdmin osmanzakir90@xxxxxxxxxxx​
    ServerName dragonscurrencyconv.com.nu​
ServerAlias www.dragonscurrencyconv.com.nu​
    ErrorLog "logs/dragonscurrencyconv.com.nu-error.log"​
    CustomLog "logs/dragonscurrencyconv.com.nu-access.log" common​
</VirtualHost>​
ProxyPass "/" "E:/programming/visual_studio_2017/Projects/currency_converter/x64/Release"​
ProxyPass "/?q=accesskey"
"

Should I put the same path as for the first ProxyPass directive, for the "/" route, for the accesskey route as well, or is that one also wrong?  What would the correct one be if so?  My app's source code is all on GitHub, here: https://github.com/DragonOsman/currency_converter.  Any help would be appreciated.  Thanks in advance.


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux