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
Pure VPN - Up to 27 Months
vgp
Updated:
Friday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Nginx server configuration problem
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="pasansnoop" data-source="post: 28038064" data-attributes="member: 125460"><p>mama itapasse nginx/sites-available/ folder eke hadapu custom config file eka remove karala default eka link kala aith..</p><p>dan 403 forbidden error eka enne na..</p><p>dan ip eka enter kalama browser eken index.php eka download karanawa <img src="/styles/default/xenforo/smilies/default/baffled.gif" class="smilie" loading="lazy" alt=":baffled:" title="Baffled :baffled:" data-shortname=":baffled:" /> </p><p></p><p>me config eka harida balanako..</p><p></p><p>[CODE]server {</p><p> listen 80 default_server;</p><p> listen [::]:80 default_server;</p><p></p><p> # SSL configuration</p><p> #</p><p> # listen 443 ssl default_server;</p><p> # listen [::]:443 ssl default_server;</p><p> #</p><p> # Note: You should disable gzip for SSL traffic.</p><p> # See: https://bugs.debian.org/773332</p><p> #</p><p> # Read up on ssl_ciphers to ensure a secure configuration.</p><p> # See: https://bugs.debian.org/765782</p><p> #</p><p> # Self signed certs generated by the ssl-cert package</p><p> # Don't use them in a production server!</p><p> #</p><p> # include snippets/snakeoil.conf;</p><p></p><p> root /var/www/html;</p><p> </p><p> # Add index.php to the list if you are using PHP</p><p> index index.php index.html index.htm index.nginx-debian.html;</p><p></p><p> server_name _;</p><p></p><p> location / {</p><p> # First attempt to serve request as file, then</p><p> # as directory, then fall back to displaying a 404.</p><p> try_files $uri $uri/ =404;</p><p> }</p><p></p><p> # pass PHP scripts to FastCGI server</p><p> #</p><p> #location ~ \.php$ {</p><p> # include snippets/fastcgi-php.conf;</p><p> #</p><p> # # With php-fpm (or other unix sockets):</p><p> # fastcgi_pass unix:/run/php/php7.4-fpm.sock;</p><p> # # With php-cgi (or other tcp sockets):</p><p> # fastcgi_pass 127.0.0.1:9000;</p><p> #}</p><p> </p><p> # deny access to .htaccess files, if Apache's document root</p><p> # concurs with nginx's one</p><p> #</p><p> #location ~ /\.ht {</p><p> # deny all;</p><p> #}</p><p>}</p><p></p><p></p><p># Virtual Host configuration for example.com</p><p>#</p><p># You can move that to a different file under sites-available/ and symlink that</p><p># to sites-enabled/ to enable it.</p><p>#</p><p>#server {</p><p># listen 80;</p><p># listen [::]:80;</p><p>#</p><p># server_name example.com;</p><p>#</p><p># root /var/www/example.com;</p><p># index index.html;</p><p>#</p><p># location / {</p><p># try_files $uri $uri/ =404;</p><p># }</p><p>#}[/CODE]</p></blockquote><p></p>
[QUOTE="pasansnoop, post: 28038064, member: 125460"] mama itapasse nginx/sites-available/ folder eke hadapu custom config file eka remove karala default eka link kala aith.. dan 403 forbidden error eka enne na.. dan ip eka enter kalama browser eken index.php eka download karanawa :baffled: me config eka harida balanako.. [CODE]server { listen 80 default_server; listen [::]:80 default_server; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Note: You should disable gzip for SSL traffic. # See: https://bugs.debian.org/773332 # # Read up on ssl_ciphers to ensure a secure configuration. # See: https://bugs.debian.org/765782 # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/html; # Add index.php to the list if you are using PHP index index.php index.html index.htm index.nginx-debian.html; server_name _; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; } # pass PHP scripts to FastCGI server # #location ~ \.php$ { # include snippets/fastcgi-php.conf; # # # With php-fpm (or other unix sockets): # fastcgi_pass unix:/run/php/php7.4-fpm.sock; # # With php-cgi (or other tcp sockets): # fastcgi_pass 127.0.0.1:9000; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # Virtual Host configuration for example.com # # You can move that to a different file under sites-available/ and symlink that # to sites-enabled/ to enable it. # #server { # listen 80; # listen [::]:80; # # server_name example.com; # # root /var/www/example.com; # index index.html; # # location / { # try_files $uri $uri/ =404; # } #}[/CODE] [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom