Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A secure header was provided, but no security password was provided - Apache - Node - Passenger #2459

Open
DiegoVega19 opened this issue Dec 7, 2022 · 0 comments

Comments

@DiegoVega19
Copy link

I have implemented two rest api created in node under the virtual host where each one has an independent base uri, which independently work correctly, the problem lies when I implement an api gateway under the virtual host shown in my files, when I want to make a Request to any of one of the services throws me the error "A secure header was provided, but no security password was provided", the request enters reaches the dispatcher, but never raises the instance to which I address

for example when making a post to

http://server.test.net/proxy/v1/?service=test1&target=/v1/users -->> gives me the error

any help or solution? I've been trying to fix it for days.

I attach my files below

My Instances config

 <VirtualHost *:80>
 ServerName localhost
 PassengerUser user1
 PassengerGroup user1

Alias /demo1  /usr/local/aplicaciones/demo
<Location /demo1>
      PassengerBaseURI /demo1
      PassengerRuby /usr/local/rvm/gems/ruby-2.7.6/wrappers/ruby
      PassengerAppRoot /usr/local/aplicaciones/demo
      PassengerAppType node
      PassengerStartupFile main.js
      PassengerAppGroupName demo1
</Location>

Alias /demo2  /usr/local/aplicaciones/demo
<Location /demo2>
      PassengerBaseURI /demo2
      PassengerRuby /usr/local/rvm/gems/ruby-2.7.6/wrappers/ruby
      PassengerAppRoot /usr/local/aplicaciones/demo
      PassengerAppType node
      PassengerStartupFile main.js
      PassengerAppGroupName demo2
</Location>

  <Directory /usr/local/aplicaciones/demo>
       Options FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
       Allow from all
       Options -MultiViews
 </Directory>

</VirtualHost>

My Api Gateway Config

<VirtualHost *:80>
 ServerName server.test.net
 PassengerRuby /usr/local/rvm/gems/ruby-2.7.6/wrappers/ruby
 PassengerAppRoot /usr/local/aplicaciones/api-gateway
 PassengerUser user1
 PassengerGroup user1
 PassengerAppType node
 PassengerStartupFile main.js

# Relax Apache security settings
    <Directory /usr/local/aplicaciones/api-gateway>
       Options FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all
       Allow from all
       Options -MultiViews
      Require all granted
 </Directory>
</VirtualHost>

My Api Gateway Config files where read the instances services in node

 services:
    - instancename : test1
      url: http://localhost:80/demo1
      config: {}
    - instancename : test2
      url: http://localhost:80/demo2
      config: {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant