Code Monkey home page Code Monkey logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Thank you for using pcaphar. However, I don't think I understand your request. 
What are the problems do you have when proxying? How do you config you proxy?

Original comment by [email protected] on 14 Dec 2012 at 8:59

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I run pcaphar using the dev version of google app engine. The exact command I 
use is: screen -d -m dev_appserver.py --port=8081 --address=172.28.4.52 src/ 
This binds to an internal IP and port 8081 of my network. The machine where 
pcaphar is running also runs other http services on other non standard ports.

To deal with this I have Apache running a reverse proxy on port 80. I would 
like to have http://hostname/pcap2har/ reverse proxied to http://hostname:8081/

To do this without changing anything inside of pcaphar, I would need to rewrite 
every url and resource on the fly using mod_proxy_html. This is the httpd 
configuration I tried to use to do this: http://pastebin.com/2eAeypX9 but it 
did not work consistently. The harviewer portion required multiple page reloads 
to load a complete waterfall with css etc.

If I could run pcaphar at http://hostname:8081/pcap2har/ then proxying it to be 
at http://hostname/pcap2har would be much easier.

To do this, I tried to modify the app.yaml file like so: 
http://pastebin.com/LjWgYbT2

However this will still not work, and requires further modification of the 
pcaphar.py file. At that point, it becomes extremely difficult to manage. 
Especially if this software package is ever updated. 

Original comment by [email protected] on 14 Dec 2012 at 10:13

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Just wanted to check in to see if my explanation made sense or if you need more 
information.

Original comment by [email protected] on 15 Jan 2013 at 10:54

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Thanks for the following up. I have tried myself for proxying and am working on 
a fix to make it easy for proxying. I have a working prototype now, will update 
when it is ready.

Original comment by [email protected] on 16 Jan 2013 at 1:35

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Thanks for digging further into it. I am really excited to see this get fixed!

Original comment by [email protected] on 4 Feb 2013 at 7:56

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I will be updating the source code with this week. Thanks for your patience. I 
have working version of proxy for testing at http://a.instwave.com/pcap2har/. 
Let me know if you encounter any problems. 

Original comment by [email protected] on 4 Feb 2013 at 8:49

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Tested it with some basic content and it worked without issue. Thanks much! 
Looking forward to the new commit.

Original comment by [email protected] on 8 Feb 2013 at 12:28

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Checked code in as of r59.

Original comment by [email protected] on 8 Feb 2013 at 7:28

  • Changed state: Fixed

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I set this up, and it works fine as long as I proxy hostname:8081/ to 
hostname:80/

But hostname:8081/ to hostname:80/pcap2har does not work after submitting the 
har file.  It redirects to hostname:80/view?hash_str=HASH

Could you please share the proxy configuration you use in the 
http://a.instwave.com/pcap2har/ example?

Original comment by [email protected] on 12 Feb 2013 at 1:20

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I just wanted to follow up on this to see if you would be willing to share your 
proxy config.

Original comment by [email protected] on 8 Aug 2013 at 10:50

from pcaphar.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Sorry for the late reply, I have to dig up to foudn the config. Here it is:
        RewriteEngine on
        RewriteRule ^/pcap2har$ /pcap2har/ [R]

        ProxyRequests Off
        ProxyPass /pcap2har/ http://pcapperf.appspot.com/
        ProxyPassReverse /pcap2har/ http://pcapperf.appspot.com/

This is just for my test, so the whole config is very simple. I copy and paste 
it here for your reference:
$ cat /etc/apache2/sites-enabled/001-proxy 
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www

        RewriteEngine on
        RewriteRule ^/pcap2har$ /pcap2har/ [R]

        ProxyRequests Off
        ProxyPass /pcap2har/ http://pcapperf.appspot.com/
        ProxyPassReverse /pcap2har/ http://pcapperf.appspot.com/

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    #LogLevel debug

    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>


Original comment by [email protected] on 12 Aug 2013 at 1:59

from pcaphar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.