AP
nohup sshuttle ..... &
пробовал. не прокатило
Size: a a a
AP
nohup sshuttle ..... &
OL
DS
S
ProxyPass /jenkins http://0.0.0.0:8080/jenkins
ProxyPassReverse / http://0.0.0.0:8080/jenkins
<Proxy *>
Order deny,allow
Allow from all
AuthType Basic
AuthName "Password Required"
AuthUserFile /etc/httpd/conf/.htpasswd
Require valid-user
</Proxy>
HTTP ERROR 401 Unauthorized
URI: /jenkins/
STATUS: 401
MESSAGE: Unauthorized
SERVLET: Stapler
Powered by Jetty:// 9.4.39.v20210325
JR
S
JR
S
S
[root@fedora-s-1vcpu-1gb-ams3-01 conf]# tail -f /var/log/jenkins/jenkins.log
2021-06-29 19:00:55.066+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
2021-06-29 19:00:55.297+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
2021-06-29 19:00:55.301+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
2021-06-29 19:00:55.355+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
2021-06-29 19:00:55.407+0000 [id=43] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Download metadata
2021-06-29 19:00:55.431+0000 [id=43] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Download metadata. 18 ms
2021-06-29 19:00:55.701+0000 [id=30] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
2021-06-29 19:00:55.760+0000 [id=23] INFO hudson.WebAppMain$3#run: Jenkins is fully up and running
2021-06-29 19:31:37.981+0000 [id=63] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Periodic background build discarder
2021-06-29 19:31:37.992+0000 [id=63] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Periodic background build discarder. 7 ms
N
JR
N
JR
DS
DS
JR
S
<Proxy "*">
Order deny,allow
Allow from all
Authtype BASIC
AuthName "Please sign in with your Apache user name and password"
# file created with htpasswd
AuthUserFile /usr/local/apache2/conf/passwd
Require valid-user
# Remove these header before to set the right value after, it prevent the client from setting this header
RequestHeader unset "X-Forwarded-User"
RequestHeader unset "X-Forwarded-Groups"
# Remove the basic authorization header to avoid to use it in Jenkins
RequestHeader unset "Authorization"
# Adds the X-Forwarded-User header that indicates the current user name.
# this portion came from http://old.nabble.com/Forcing-a-proxied-host-to-generate-REMOTE_USER-td2911573.html#a2914465
RewriteEngine On
# User to use to login in Jenkins
RequestHeader set "X-Forwarded-User" "%{RU}e"
# Groups are separated by |
RequestHeader set "X-Forwarded-Groups" "%{RU}e|users"
# strip the REALM of Kerberos Login
# RequestHeader edit X-Forwarded-User "@REALM$" ""
# see the Apache documentation on why this has to be lookahead
RewriteCond %{LA-U:REMOTE_USER} (.+)
# this actually doesn't rewrite anything. what we do here is to set RU to the match above
# "NS" prevents flooding the error log
RewriteRule .* - [E=RU:%1,NS]
</Proxy>
N
DS