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

.conf file configuration issues #188

Open
wzsvip opened this issue Dec 19, 2024 · 0 comments
Open

.conf file configuration issues #188

wzsvip opened this issue Dec 19, 2024 · 0 comments

Comments

@wzsvip
Copy link

wzsvip commented Dec 19, 2024

default.conf file,
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.php
try_files $uri $uri/ /index.php?q=$uri&$args;
}
should be removed from the index.php of the home directory that will redirect when accessing the /aa/access destination link
In addition,
ask how to write a reverse proxy to use,
location /google/ {
proxy_pass http://google.com/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Referer $http_host;

CORS headers

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'X-Requested-With, Content-Type, Authorization, Accept';

}

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