Skip to content

Upload a react website on webserver #139464

Discussion options

You must be logged in to vote

It sounds like the 403 Forbidden error you're encountering could be related to a couple of common issues:

1. Permissions
Make sure the permissions on the server allow public access to the directory. If using Linux, the files should typically have at least 644 permissions (chmod 644 filename) and the directories 755 (chmod 755 directory). However, setting higher permissions like 777 is not recommended for security reasons.

2. Web Server Configuration

No index.html file: If your project is built with React, it usually generates a single index.html file in the build or dist folder. If you directly upload the React project (without building it), there might not be an index.html file to serve,…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@MLangeEU
Comment options

Comment options

You must be logged in to vote
1 reply
@MLangeEU
Comment options

Answer selected by MLangeEU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Programming languages, open source, and software development.
3 participants