Configure arachni behind an apache proxy
Hy,
I've successfully installed arachni scanner at boot start.
I'm able to access to the webui directly from an url.
When I tried behind a proxy, the assets are not rewritten with the
proper url.
Is there any conf to set in the server so that it culd fully run
behind a proxy.
regards
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Tasos Laskos on 15 Sep, 2013 04:52 PM
Maybe try and configure it to listen on your external IP address instead of the default (
0.0.0.0
)?0.0.0.0
of127.0.0.1
can be problematic for proxies.2 Posted by mailinglist on 15 Sep, 2013 05:09 PM
Tasos,
Thanks for your fast answer.
When I do this, I can access to the start page without correct assets and when I log in, I'm redirect to a wrong URLHere is my virtual host conf :
For information, I successfully configured a proxy without the /arachni location. My point is when I add a location behind,
regards
Support Staff 3 Posted by Tasos Laskos on 15 Sep, 2013 05:19 PM
I meant configuring the web interface to listen on a specific address:
For more options:
4 Posted by mailinglist on 15 Sep, 2013 05:24 PM
Hy tasos,
I tried your proposal,
--host
without success.The home page is displayed without any css and the links are all related to the root of my wirtual host
Support Staff 5 Posted by Tasos Laskos on 15 Sep, 2013 06:00 PM
No sure if you can mount it under a different directory like that, you're breaking the structure of the webapp.
6 Posted by mailinglist on 15 Sep, 2013 06:13 PM
Hy tasos,
Thanks for your answer. I was loosing my hairs.
Since it couldn't be served like this, is it possible to add a feature for an option in the server with the path to be served?
Of course, this question could be closed.
Thanks
Support Staff 7 Posted by Tasos Laskos on 15 Sep, 2013 08:26 PM
I got stuck at the same place, making the assets show properly. There must be a solution though so I'll keep digging and let you know how it goes.
Support Staff 8 Posted by Tasos Laskos on 16 Sep, 2013 08:00 PM
Giving up on this. Sorry, but the system wasn't designed to be used this way and I can't find an easy (or any) workaround for you.
Tasos Laskos closed this discussion on 16 Sep, 2013 08:00 PM.
Tasos Laskos re-opened this discussion on 18 Sep, 2013 07:03 PM
Support Staff 9 Posted by Tasos Laskos on 18 Sep, 2013 07:03 PM
OK I figured out how to mount the WebUI under a subdirectory ("arachni" in this case):
system/arachni-web-ui/config/application.rb
-- https://gist.github.com/Zapotek/6612327config.assets.prefix = '/arachni/assets'
(Line)system/arachni-web-ui/config/routes.rb
-- https://gist.github.com/Zapotek/6612310scope 'arachni'
(Line)./bin/arachni_web_task assets:precompile
Tasos Laskos closed this discussion on 18 Sep, 2013 07:04 PM.