From f740279454d9543d79d33397766775bb8cc51515 Mon Sep 17 00:00:00 2001 From: deadvey Date: Sat, 2 Nov 2024 11:53:20 +0100 Subject: [PATCH] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4a8121c..7601f33 100755 --- a/README.md +++ b/README.md @@ -34,19 +34,20 @@ This project utilizes Apache2 as a reverse proxy to handle incoming web traffic To set up Apache2 as a reverse proxy for your Node.js app: - 1. Start your Node.js application (/node/app.js) on port 8003. You can run the application in a tmux session using the command:
+ 1. Start your Node.js application (/node/app.js) on port 8003. You can run the application in a tmux session using the command:\n + + `node app.js`
- ``` node app.js``` 2. Edit the Apache configuration file /etc/apache2/sites-enabled/000-default.conf and add the following lines to forward requests to the Node.js app:
-```ProxyPass / http://localhost:8003/```
+ `ProxyPass / http://localhost:8003/`
3. If you have other sites or applications running on Apache2 that should not be proxied to Node.js, you can add exceptions like this:
-```ProxyPass /wordpress !```
+ `ProxyPass /wordpress !`
Replace /wordpress with the appropriate path for your exception:
@@ -55,7 +56,7 @@ To set up Apache2 as a reverse proxy for your Node.js app: To verify that the Node.js application is running and accessible through Apache2, you can use the curl command: -```curl http://localhost:8003``` +`curl http://localhost:8003`
This should return the response from your Node.js application.