No redirection to the installation page

3 месяца назад
Hi,

Using Linux and not receiving the redirection to the installation page downloaded the no source option. Want to use SSL with UseProxy setting to true in the appsettings.json file. That file only appears to be in the with source download. Without SSL I can get to the page: Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx. In the nginx file for the site-enabled matches the site-available and root specified directly to the nopCommerce folder.

Thanks
3 месяца назад
Have you tried looking at the nopCommerce documentation and user guide here https://docs.nopcommerce.com/en/installation-and-upgrading/installing-nopcommerce/installing-on-linux.html. It covers answers to your questions :)

Best regards,
Atul
3 месяца назад
Hi Atul,

I followed that article exactly without success.

3 месяца назад
You probably don't want to set up SSL until after you install the app.
Yes,  appsettings.json file gets created by nopCommerce after the install.
What URL are you navigating to?
Did you set up as per
"To configure nginx as a reverse proxy to forward requests to your ASP.NET Core app, modify /etc/nginx/sites-available/default. "?
I.e. what's in your
  server_name ...
  location / {
    proxy_pass ...
3 месяца назад
Exactly!
New York wrote:
You probably don't want to set up SSL until after you install the app.
Yes,  appsettings.json file gets created by nopCommerce after the install.
What URL are you navigating to?
Did you set up as per
"To configure nginx as a reverse proxy to forward requests to your ASP.NET Core app, modify /etc/nginx/sites-available/default. "?
I.e. what's in your
  server_name ...
  location / {
    proxy_pass ...
3 месяца назад
I did not have the default file in the sites-available or sites-enabled folders. I created them with the following entries:

# Default server configuration
#
server {
    listen 80 default_server;
    listen [::]:80 default_server;

    server_name   nopCommerce.com;

    location / {
    proxy_pass         http://localhost:5000;
    proxy_http_version 1.1;
    proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection keep-alive;
    proxy_set_header   Host $host;
    proxy_cache_bypass $http_upgrade;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto $scheme;
    }

    # 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;
}

I changed the server_name to our test server, but now receiving a 502 Bad Gateway nginx/1.18.0
3 месяца назад
Resolved the 502 error now have the 403 Forbidden nginx/1.18.0 - Made us that ownership recursive for www-data:www-data from public_html . nopCommerce folder is under this public_html folder