Is it possible to run Both node and Apache on the same domain without adding the port in the URL ? and serve both on the same page, i already have node running on port 8443 and Apache on port 433 and they both work fine but i need to specify in the link the port "8443" to access node which is not what i want, i want to serve both on the same URL if possible without adding the port to the URL.
Running both Node.js and Apache on the same domain and "URL"
521 Views Asked by Cryptic At
2
There are 2 best solutions below
0
drdr
On
You can set an nginx proxy before them and separate routes to apache or node.
https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in APACHE
- Special access rule in an .htaccess file for IP addresses, authorized only for one directory structure
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Cannot load modules/mod_dav_svn.so into server
- How to ignore case in regexp mapping in a .htaccess rewrite rule?
- Oracle Http server ISNT-07551
- I cant access file directory with PHP local host on XAMPP. it just shows one of the files I have in my visual studio code
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Issue with Django --> Apache WSGI deployment
- changing the node version used by apache web server
- Apache: How can I redirect to a subfolder with a URL param but serve required content via the main URL?
- Why/How does Apache auto-include "DHE" TLS1.2 ciphers while nginx needs "dhparams" file?
- Set up MX records in apache/Ubuntu to point to external mail server
- How to proxy to another port?
- Php can not upload file out of /var/www/html even after disabling Selinux
- Serve static site on S3 + CloudFlare with Apache retaining the source URL
Related Questions in REVERSE-PROXY
- Nginx reverse proxy with query parameters not working
- PGAdmin4 configured behind a reverse proxy but unable to connect to Postgresql server
- CDN Detector Extension / Script
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- How to proxy to another port?
- Accessing solr web interface behind reverse proxy returns "Content Encoding Error"
- Modify response in Rust tower Service
- Shopware 6 mixed content error when using reverse proxy
- Apache 2.4 as a Reverse Proxy for RabbitMQ web socket
- apache reverseProxy how to proxypass to multi virtualhosts on same localhost and port?
- Webservices with Authentik forward auth behind Nginx Proxy Manager and CORS
- NextJS app refreshing with Nginx reverse proxy to PM2
- How to add custom apache2/httpd header based on BALANCER_WORKER_ROUTE variable?
- Can I preserve subdomain with Yarp?
- Reverse Proxy Randomly gives 404 Errors
Related Questions in PORTS
- log all inbound connections powershell
- How to download ports OpenBSD
- Multiple servers on Node.js
- Create Neutron port using Ansible and Openstack Packstack
- Containers don't have ports
- Nginx multiple server ports configuration with docker
- Why don't my Kubernetes services publish on the port I specify?
- How do I unblock port on windows
- Running both Node.js and Apache on the same domain and "URL"
- How to remove index.php within codeigniter on different port
- Hadoop 3.1.0 ports to open
- Hosting two different servers with one domain
- Can a single server serve 2 different websites?
- How java SSLSocketFactory choose the server certificate and private key during SSL from keystore
- docker stack deploy use compose file can not specify ip:port
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use Apache reverse proxy
Add this configuration to your apache conf.
ProxyPass "/nodeapp" "http:/localhost:8443"You can access node application by
http://www.example.com/nodeappA reverse proxy is a type of proxy server that retrieves resources on behalf of a client from server. These resources are then returned to the client as if they originated from the web server itself.