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

unable to get depolyed app with apache to wrok #488

Open
johnGates10 opened this issue Nov 28, 2023 · 1 comment
Open

unable to get depolyed app with apache to wrok #488

johnGates10 opened this issue Nov 28, 2023 · 1 comment

Comments

@johnGates10
Copy link

Issue summary

Hello, my app works fine in dev environment, I deployed it to my custom vps with apache server. the react front works fine but the backend api calls won't work

Expected behavior

the api calls should work

Actual behavior

the api calls won't work
I get this error : net::ERR_TOO_MANY_REDIRECTS
https://xxxxxxx.com/api/products/count/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/

Steps to reproduce the problem

npm init @shopify/app@latest -- --template php
cd web
composer install
cp .env.example .env
touch storage/db.sqlite
php artisan migrate
php artisan key:generate
cd ..
npm run build --api-key=xxxxxxxxxxxxxxxxxxxx
copy the the app folder to web server
configure apache :
DocumentRoot /var/www//web/public
ErrorLog ...
CustomLog ..
<Directory "/var/www/">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted

restart apache
test app

Reduced test case


Checklist

@WildernessStars
Copy link

hello, have you figured it out?

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