Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Tele marketing executive
nuwandse
Updated:
Today at 12:27 PM
Ad icon
Gampaha
Thenya Mishel
menuka2000
Updated:
Wednesday at 10:48 PM
Handmade Character Soft Toy Bluey Bingo
anil1961
Updated:
Aug 3, 2026
Colombo
Dahua POE Switch 8 Ports (DH-PFS3010-8ET-65)
hashaz2012
Updated:
Aug 3, 2026
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Jul 31, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
SSL wordpress and nginx ගැන දන්න කවුරු හරි ඉන්නවද?
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="DevOps Engineer" data-source="post: 30399329" data-attributes="member: 583618"><p>meka thama hari giye nene machan. mekai siddiya. ssl file wede nam hari. dn </p><p></p><p>www.<a href="http://www.realstate.io/auth/login" target="_blank">realstate.io</a> main wordpress site document root - /var/www/html/ -- working</p><p><strong>www.<a href="http://www.realstate.io/auth/login" target="_blank">realstate.io</a>/auth/login react frontend document root - /var/www/html/frontend <span style="color: rgb(184, 49, 47)">--not working</span></strong></p><p><a href="https://api" target="_blank">https://api</a>.<a href="http://www.realstate.io/auth/login" target="_blank">realstate.io</a>/ node backend running on pm2. document root - /opt/backend --working</p><p>dnmewage ssl config eka hari. awla thama www.<a href="http://www.realstate.io/auth/login" target="_blank">realstate.io</a>/auth/login load wenne nethi eka. </p><p></p><p>www.<a href="http://www.realstate.io/auth/login" target="_blank">realstate.io</a> meken wordpress eka load wenwa. hebei react app ekedi white screen ekakenawa mukuth load wenne ne. backend eka <a href="https://api" target="_blank">https://api</a>.<a href="http://www.realstate.io/auth/login" target="_blank">realstate.io</a>/ awlka nethuwa load wenawa. </p><p>nginx eke error log eke palleha widihata error ekak wadinawa. hebei permission okkoma hari. file tikath okkoma thiynawa. mekata chatgpt eken wath hari uththarayak labune ne. mekata mokadda machan karanna puluwn. palleha mama dala thiyanawa nginx config file eka.</p><p></p><p>erorr eka ----></p><p>[CODE]2024/12/13 01:30:45 [error] 2862946#2862946: *9 open() "/var/www/html/auth/static/js/main.3d23d7e0.js" failed (2: No such file or directory), client: 175.157.11.178, server: www.realstate.io, request: "GET /auth/static/js/main.3d23d7e0.js HTTP/1.1", host: "www.realtorr.io", referrer: "https://www.realstate.io/auth/login/"</p><p>2024/12/13 01:30:45 [error] 2862946#2862946: *9 open() "/var/www/html/auth/static/css/main.58e4aa07.css" failed (2: No such file or directory), client: 175.157.11.178, server: www.realstate.io, request: "GET /auth/static/css/main.58e4aa07.css HTTP/1.1", host: "www.realstate.io", referrer: "https://www.realstate.io/auth/login/"[/CODE]</p><p></p><p>nginx config file eka --> /etc/nginx/sites-available/realstate.io</p><p>[CODE=nginx]# Redirect HTTP to HTTPS</p><p>server {</p><p> listen 80;</p><p> server_name www.realstate.io realstate.io api.realstate.io;</p><p></p><p> # Redirect all HTTP traffic to HTTPS</p><p> return 301 https://$host$request_uri;</p><p>}</p><p></p><p># WordPress (Main Site)</p><p>server {</p><p> listen 443 ssl;</p><p> server_name www.realstate.io realstate.io;</p><p></p><p> ssl_certificate /etc/nginx/ssl/realstate.crt;</p><p> ssl_certificate_key /etc/nginx/ssl/realstate.key;</p><p> ssl_trusted_certificate /etc/nginx/ssl/realstate.ca-bundle;</p><p></p><p> # WordPress Root</p><p> root /var/www/html;</p><p> index index.php index.html index.htm;</p><p></p><p> # WordPress handling</p><p> location / {</p><p> try_files $uri $uri/ /index.php?$args;</p><p> }</p><p></p><p> # PHP processing for WordPress</p><p> location ~ \.php$ {</p><p> include snippets/fastcgi-php.conf;</p><p> fastcgi_pass unix:/run/php/php8.3-fpm.sock; # Ensure PHP 8.3 is running</p><p> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</p><p> include fastcgi_params;</p><p> }</p><p></p><p> # Deny access to hidden files</p><p> location ~ /\. {</p><p> deny all;</p><p> }</p><p></p><p> # Enable caching for static files</p><p> location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf)$ {</p><p> expires 6M;</p><p> access_log off;</p><p> add_header Cache-Control "public";</p><p> }</p><p>}</p><p></p><p># React Frontend (Frontend App)</p><p>server {</p><p> listen 443 ssl;</p><p> server_name www.realstate.io;</p><p></p><p> ssl_certificate /etc/nginx/ssl/realstate.crt;</p><p> ssl_certificate_key /etc/nginx/ssl/realstate.key;</p><p> ssl_trusted_certificate /etc/nginx/ssl/realstate.ca-bundle;</p><p></p><p> # Serve React Frontend</p><p> location /auth/login {</p><p> root /var/www/html/frontend;</p><p> index index.html;</p><p> try_files $uri /index.html;</p><p> }</p><p></p><p> # Enable caching for static files</p><p> location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf)$ {</p><p> root /var/www/html/frontend;</p><p> expires 6M;</p><p> access_log off;</p><p> add_header Cache-Control "public";</p><p> }</p><p></p><p> # Deny access to hidden files</p><p> location ~ /\. {</p><p> deny all;</p><p> }</p><p>}</p><p></p><p># Node.js Backend (API)</p><p>server {</p><p> listen 443 ssl;</p><p> server_name api.realstate.io;</p><p></p><p> ssl_certificate /etc/nginx/ssl/realstate.crt;</p><p> ssl_certificate_key /etc/nginx/ssl/realstate.key;</p><p> ssl_trusted_certificate /etc/nginx/ssl/realstate.ca-bundle;</p><p></p><p> # Proxy requests to PM2 backend</p><p> location / {</p><p> proxy_pass http://127.0.0.1:5000; # Ensure your backend is running on port 5000</p><p> proxy_http_version 1.1;</p><p> proxy_set_header Upgrade $http_upgrade;</p><p> proxy_set_header Connection 'upgrade';</p><p> proxy_set_header Host $host;</p><p> proxy_cache_bypass $http_upgrade;</p><p></p><p> # Additional headers for security</p><p> add_header X-Frame-Options SAMEORIGIN;</p><p> add_header X-Content-Type-Options nosniff;</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p></p><p>thawa react app eke package.json eke homepage set karala thiyenne.</p><p></p><p></p><p>[CODE=javascript]{</p><p> "name": "real-eastate-frontend",</p><p> "version": "0.1.0",</p><p> "private": true,</p><p> "homepage": "/auth/",</p><p> "dependencies": {</p><p> "@craco/craco": "^7.1.0",</p><p> "@dnd-kit/core": "^6.1.0",</p><p> "@dnd-kit/sortable": "^8.0.0",</p><p> "@fontsource/nunito-sans": "^5.0.13",</p><p> "@fortawesome/fontawesome-free": "^6.5.2",</p><p> "@react-google-maps/api": "^2.19.3",</p><p>[/CODE]</p><p>src/app.js eketh changes tikak kala phala widiyata.</p><p></p><p>[CODE=javascript]import React from 'react';</p><p>import { Routes, Route } from 'react-router-dom';</p><p>import { ToastContainer } from 'react-toastify';</p><p>import 'react-toastify/dist/ReactToastify.css';</p><p>import 'leaflet/dist/leaflet.css';</p><p></p><p>import AuthRoutes from './routes/AuthRoutes';</p><p>import PublicRoutes from './routes/PublicRoutes';</p><p>import DashboardRootLayout from './components/DashboardRootLayout';</p><p>import Dashboard from './modules/dashboard/views'</p><p>import DashBoardRoutes from './routes/DashboardRoutes';</p><p>import { Navigate } from 'react-router-dom';</p><p></p><p>const App = () => {</p><p> return (</p><p> <></p><p> <ToastContainer /></p><p> <Routes></p><p> <Route path="/auth/*" element={<AuthRoutes />} /></p><p> <Route path="/auth" element={<Navigate to="/auth/login" />} /></p><p> <Route path="/*" element={<PublicRoutes />} /></p><p> <Route path="/dashboard" element={<DashboardRootLayout />}></p><p> <Route index element={<Dashboard />} /></p><p> <Route path="/dashboard/*" element={<DashBoardRoutes />} /></p><p> </Route></p><p> </Routes></p><p> </></p><p> );</p><p>};</p><p></p><p>export default App;</p><p>[/CODE]</p><p>meka kohomada machan goda daganne?</p></blockquote><p></p>
[QUOTE="DevOps Engineer, post: 30399329, member: 583618"] meka thama hari giye nene machan. mekai siddiya. ssl file wede nam hari. dn www.[URL='http://www.realstate.io/auth/login']realstate.io[/URL] main wordpress site document root - /var/www/html/ -- working [B]www.[URL='http://www.realstate.io/auth/login']realstate.io[/URL]/auth/login react frontend document root - /var/www/html/frontend [COLOR=rgb(184, 49, 47)]--not working[/COLOR][/B] [URL]https://api[/URL].[URL='http://www.realstate.io/auth/login']realstate.io[/URL]/ node backend running on pm2. document root - /opt/backend --working dnmewage ssl config eka hari. awla thama www.[URL='http://www.realstate.io/auth/login']realstate.io[/URL]/auth/login load wenne nethi eka. www.[URL='http://www.realstate.io/auth/login']realstate.io[/URL] meken wordpress eka load wenwa. hebei react app ekedi white screen ekakenawa mukuth load wenne ne. backend eka [URL]https://api[/URL].[URL='http://www.realstate.io/auth/login']realstate.io[/URL]/ awlka nethuwa load wenawa. nginx eke error log eke palleha widihata error ekak wadinawa. hebei permission okkoma hari. file tikath okkoma thiynawa. mekata chatgpt eken wath hari uththarayak labune ne. mekata mokadda machan karanna puluwn. palleha mama dala thiyanawa nginx config file eka. erorr eka ----> [CODE]2024/12/13 01:30:45 [error] 2862946#2862946: *9 open() "/var/www/html/auth/static/js/main.3d23d7e0.js" failed (2: No such file or directory), client: 175.157.11.178, server: www.realstate.io, request: "GET /auth/static/js/main.3d23d7e0.js HTTP/1.1", host: "www.realtorr.io", referrer: "https://www.realstate.io/auth/login/" 2024/12/13 01:30:45 [error] 2862946#2862946: *9 open() "/var/www/html/auth/static/css/main.58e4aa07.css" failed (2: No such file or directory), client: 175.157.11.178, server: www.realstate.io, request: "GET /auth/static/css/main.58e4aa07.css HTTP/1.1", host: "www.realstate.io", referrer: "https://www.realstate.io/auth/login/"[/CODE] nginx config file eka --> /etc/nginx/sites-available/realstate.io [CODE=nginx]# Redirect HTTP to HTTPS server { listen 80; server_name www.realstate.io realstate.io api.realstate.io; # Redirect all HTTP traffic to HTTPS return 301 https://$host$request_uri; } # WordPress (Main Site) server { listen 443 ssl; server_name www.realstate.io realstate.io; ssl_certificate /etc/nginx/ssl/realstate.crt; ssl_certificate_key /etc/nginx/ssl/realstate.key; ssl_trusted_certificate /etc/nginx/ssl/realstate.ca-bundle; # WordPress Root root /var/www/html; index index.php index.html index.htm; # WordPress handling location / { try_files $uri $uri/ /index.php?$args; } # PHP processing for WordPress location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.3-fpm.sock; # Ensure PHP 8.3 is running fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # Deny access to hidden files location ~ /\. { deny all; } # Enable caching for static files location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf)$ { expires 6M; access_log off; add_header Cache-Control "public"; } } # React Frontend (Frontend App) server { listen 443 ssl; server_name www.realstate.io; ssl_certificate /etc/nginx/ssl/realstate.crt; ssl_certificate_key /etc/nginx/ssl/realstate.key; ssl_trusted_certificate /etc/nginx/ssl/realstate.ca-bundle; # Serve React Frontend location /auth/login { root /var/www/html/frontend; index index.html; try_files $uri /index.html; } # Enable caching for static files location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf)$ { root /var/www/html/frontend; expires 6M; access_log off; add_header Cache-Control "public"; } # Deny access to hidden files location ~ /\. { deny all; } } # Node.js Backend (API) server { listen 443 ssl; server_name api.realstate.io; ssl_certificate /etc/nginx/ssl/realstate.crt; ssl_certificate_key /etc/nginx/ssl/realstate.key; ssl_trusted_certificate /etc/nginx/ssl/realstate.ca-bundle; # Proxy requests to PM2 backend location / { proxy_pass http://127.0.0.1:5000; # Ensure your backend is running on port 5000 proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; # Additional headers for security add_header X-Frame-Options SAMEORIGIN; add_header X-Content-Type-Options nosniff; } } [/CODE] thawa react app eke package.json eke homepage set karala thiyenne. [CODE=javascript]{ "name": "real-eastate-frontend", "version": "0.1.0", "private": true, "homepage": "/auth/", "dependencies": { "@craco/craco": "^7.1.0", "@dnd-kit/core": "^6.1.0", "@dnd-kit/sortable": "^8.0.0", "@fontsource/nunito-sans": "^5.0.13", "@fortawesome/fontawesome-free": "^6.5.2", "@react-google-maps/api": "^2.19.3", [/CODE] src/app.js eketh changes tikak kala phala widiyata. [CODE=javascript]import React from 'react'; import { Routes, Route } from 'react-router-dom'; import { ToastContainer } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import 'leaflet/dist/leaflet.css'; import AuthRoutes from './routes/AuthRoutes'; import PublicRoutes from './routes/PublicRoutes'; import DashboardRootLayout from './components/DashboardRootLayout'; import Dashboard from './modules/dashboard/views' import DashBoardRoutes from './routes/DashboardRoutes'; import { Navigate } from 'react-router-dom'; const App = () => { return ( <> <ToastContainer /> <Routes> <Route path="/auth/*" element={<AuthRoutes />} /> <Route path="/auth" element={<Navigate to="/auth/login" />} /> <Route path="/*" element={<PublicRoutes />} /> <Route path="/dashboard" element={<DashboardRootLayout />}> <Route index element={<Dashboard />} /> <Route path="/dashboard/*" element={<DashBoardRoutes />} /> </Route> </Routes> </> ); }; export default App; [/CODE] meka kohomada machan goda daganne? [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom