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

[HELP] Invalid Host Header #45

Closed
mzch opened this issue Nov 17, 2019 · 5 comments
Closed

[HELP] Invalid Host Header #45

mzch opened this issue Nov 17, 2019 · 5 comments

Comments

@mzch
Copy link

mzch commented Nov 17, 2019

I run satellity but it only responds Invalid Host Header.
Could you tell me how to fix this issue?

p.s.
I did yarn build in app and pointed apache at build directory.
Then click 'Login' and I can see only busy circle as below:
ScreenShot 2019-11-18 10 58 17

@jadeydi
Copy link
Contributor

jadeydi commented Nov 18, 2019

I think you don't have access for your http server.

@mzch
Copy link
Author

mzch commented Nov 18, 2019

Hi @jadeydi ,
? I have access to my web server. please test https://prebbs.com
When accessing, satellity pops up 'Not Found.' notification.

@mzch
Copy link
Author

mzch commented Nov 18, 2019

My config.yaml

default: &default
  name: Open BBS for people who are instrested in the Internet Technology.
  http:
    host: https://prebbs.com
    port: 4000
  database:
    user: satellity
    password: "xxxxxx"
    host: 192.168.207.11
    port: 5432
  github:
    client_id: xxxxxx
    client_secret: xxxxxx
  system:
    attachments:
      storage: "local"
      path: "/srv/satellity/assets"
  recaptcha: # will be ignore if url or secret is blank
    url: https://www.google.com/recaptcha/api/siteverify
    secret: "xxxxxx"
    site_key: "xxxxxx"
  operators:
    - mzch@mzch.org
  email:
    verification:
      title: "Register An Satellity Account"
      reset: "Reset Your Satellity Account"
      body: "Your verification code: <b>%s</b>"
  mailgun:
    domain: "mailgun.prebbs.com"
    key: "xxxxxxxx"
    sender: "no-replay@prebbs.com"


development:
  <<: *default
  database:
    name: satellity_dev

test:
  <<: *default
  database:
    name: satellity_test

production:
  <<: *default
  database:
    name: satellity

And started by satellity -e production

@mzch
Copy link
Author

mzch commented Nov 19, 2019

apache log recored 304.

118.243.18.144 - - [18/Nov/2019:22:33:21 -0800] "GET / HTTP/2.0" 304 96 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36"

What does this mean?

@mzch
Copy link
Author

mzch commented Nov 19, 2019

Resolved.

This is caused by ProxyPreserveHost On directive in apache config file.
Apparently, Satellity doesn't work with being passed public URL.

Thanks.

@mzch mzch closed this as completed Nov 19, 2019
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

2 participants