Botched my Nginx install, making it worse












0















having an issue. Trying to do Owncloud install and Nginx is not working. Followed directions, but I missed something is all I can come too. Here is what I have from my /etc/nginx/sites-enabled/defualt.conf



server {
listen 8080 default_server;
listen [::]:8080 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.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;


Here is Nginx status



ginx.service - A high performance web server and a reverse proxy server
Loaded: loaded(/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-09-01 10:25:44 PDT; 1h 31min ago
Docs: man:nginx(8)
Main PID: 21210 (nginx)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/nginx.service
├─21210 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
├─21211 nginx: worker process
├─21212 nginx: worker process
├─21213 nginx: worker process
└─21214 nginx: worker process

Sep 01 10:25:44 Kodi-Server systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 01 10:25:44 Kodi-Server systemd[1]: Started A high performance web server and a reverse proxy server.


Here is nginx -t



nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful


UFW is currently disabled to see what else is the issue. What am I missing or what can I provide?










share|improve this question

























  • run sudo nginx -t to see where the error(s) might be! I also see started so what is the problem?

    – George Udosen
    Sep 1 '18 at 19:51













  • @GeorgeUdosen updated

    – Shane Greenfield
    Sep 2 '18 at 3:23













  • So i rebooted, and now I can see my computers IP, 0.0.0.0 and 127.0.0.1 but not my external IP

    – Shane Greenfield
    Sep 2 '18 at 17:33


















0















having an issue. Trying to do Owncloud install and Nginx is not working. Followed directions, but I missed something is all I can come too. Here is what I have from my /etc/nginx/sites-enabled/defualt.conf



server {
listen 8080 default_server;
listen [::]:8080 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.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;


Here is Nginx status



ginx.service - A high performance web server and a reverse proxy server
Loaded: loaded(/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-09-01 10:25:44 PDT; 1h 31min ago
Docs: man:nginx(8)
Main PID: 21210 (nginx)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/nginx.service
├─21210 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
├─21211 nginx: worker process
├─21212 nginx: worker process
├─21213 nginx: worker process
└─21214 nginx: worker process

Sep 01 10:25:44 Kodi-Server systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 01 10:25:44 Kodi-Server systemd[1]: Started A high performance web server and a reverse proxy server.


Here is nginx -t



nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful


UFW is currently disabled to see what else is the issue. What am I missing or what can I provide?










share|improve this question

























  • run sudo nginx -t to see where the error(s) might be! I also see started so what is the problem?

    – George Udosen
    Sep 1 '18 at 19:51













  • @GeorgeUdosen updated

    – Shane Greenfield
    Sep 2 '18 at 3:23













  • So i rebooted, and now I can see my computers IP, 0.0.0.0 and 127.0.0.1 but not my external IP

    – Shane Greenfield
    Sep 2 '18 at 17:33
















0












0








0








having an issue. Trying to do Owncloud install and Nginx is not working. Followed directions, but I missed something is all I can come too. Here is what I have from my /etc/nginx/sites-enabled/defualt.conf



server {
listen 8080 default_server;
listen [::]:8080 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.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;


Here is Nginx status



ginx.service - A high performance web server and a reverse proxy server
Loaded: loaded(/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-09-01 10:25:44 PDT; 1h 31min ago
Docs: man:nginx(8)
Main PID: 21210 (nginx)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/nginx.service
├─21210 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
├─21211 nginx: worker process
├─21212 nginx: worker process
├─21213 nginx: worker process
└─21214 nginx: worker process

Sep 01 10:25:44 Kodi-Server systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 01 10:25:44 Kodi-Server systemd[1]: Started A high performance web server and a reverse proxy server.


Here is nginx -t



nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful


UFW is currently disabled to see what else is the issue. What am I missing or what can I provide?










share|improve this question
















having an issue. Trying to do Owncloud install and Nginx is not working. Followed directions, but I missed something is all I can come too. Here is what I have from my /etc/nginx/sites-enabled/defualt.conf



server {
listen 8080 default_server;
listen [::]:8080 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.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;


Here is Nginx status



ginx.service - A high performance web server and a reverse proxy server
Loaded: loaded(/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-09-01 10:25:44 PDT; 1h 31min ago
Docs: man:nginx(8)
Main PID: 21210 (nginx)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/nginx.service
├─21210 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
├─21211 nginx: worker process
├─21212 nginx: worker process
├─21213 nginx: worker process
└─21214 nginx: worker process

Sep 01 10:25:44 Kodi-Server systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 01 10:25:44 Kodi-Server systemd[1]: Started A high performance web server and a reverse proxy server.


Here is nginx -t



nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful


UFW is currently disabled to see what else is the issue. What am I missing or what can I provide?







mysql php nginx owncloud-server






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 2 '18 at 3:25







Shane Greenfield

















asked Sep 1 '18 at 19:04









Shane GreenfieldShane Greenfield

267




267













  • run sudo nginx -t to see where the error(s) might be! I also see started so what is the problem?

    – George Udosen
    Sep 1 '18 at 19:51













  • @GeorgeUdosen updated

    – Shane Greenfield
    Sep 2 '18 at 3:23













  • So i rebooted, and now I can see my computers IP, 0.0.0.0 and 127.0.0.1 but not my external IP

    – Shane Greenfield
    Sep 2 '18 at 17:33





















  • run sudo nginx -t to see where the error(s) might be! I also see started so what is the problem?

    – George Udosen
    Sep 1 '18 at 19:51













  • @GeorgeUdosen updated

    – Shane Greenfield
    Sep 2 '18 at 3:23













  • So i rebooted, and now I can see my computers IP, 0.0.0.0 and 127.0.0.1 but not my external IP

    – Shane Greenfield
    Sep 2 '18 at 17:33



















run sudo nginx -t to see where the error(s) might be! I also see started so what is the problem?

– George Udosen
Sep 1 '18 at 19:51







run sudo nginx -t to see where the error(s) might be! I also see started so what is the problem?

– George Udosen
Sep 1 '18 at 19:51















@GeorgeUdosen updated

– Shane Greenfield
Sep 2 '18 at 3:23







@GeorgeUdosen updated

– Shane Greenfield
Sep 2 '18 at 3:23















So i rebooted, and now I can see my computers IP, 0.0.0.0 and 127.0.0.1 but not my external IP

– Shane Greenfield
Sep 2 '18 at 17:33







So i rebooted, and now I can see my computers IP, 0.0.0.0 and 127.0.0.1 but not my external IP

– Shane Greenfield
Sep 2 '18 at 17:33












1 Answer
1






active

oldest

votes


















0














I suggest you edit the line:



 index index.html index.htm index.nginx-debian.html;  


and write only the exact name of your index page, say index.html; for instance. This is how I managed with my own Nginx server.



After second thought, the problem might be just to add port number " :8080 " to be able to see the site with external address ( ???.???.???.???:8080 ).



I may have found the problem, it just happened to me. This is possibly linked to ubuntu firewall, it can be stopped with sudo ufw disable. This worked for me.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1071208%2fbotched-my-nginx-install-making-it-worse%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I suggest you edit the line:



     index index.html index.htm index.nginx-debian.html;  


    and write only the exact name of your index page, say index.html; for instance. This is how I managed with my own Nginx server.



    After second thought, the problem might be just to add port number " :8080 " to be able to see the site with external address ( ???.???.???.???:8080 ).



    I may have found the problem, it just happened to me. This is possibly linked to ubuntu firewall, it can be stopped with sudo ufw disable. This worked for me.






    share|improve this answer






























      0














      I suggest you edit the line:



       index index.html index.htm index.nginx-debian.html;  


      and write only the exact name of your index page, say index.html; for instance. This is how I managed with my own Nginx server.



      After second thought, the problem might be just to add port number " :8080 " to be able to see the site with external address ( ???.???.???.???:8080 ).



      I may have found the problem, it just happened to me. This is possibly linked to ubuntu firewall, it can be stopped with sudo ufw disable. This worked for me.






      share|improve this answer




























        0












        0








        0







        I suggest you edit the line:



         index index.html index.htm index.nginx-debian.html;  


        and write only the exact name of your index page, say index.html; for instance. This is how I managed with my own Nginx server.



        After second thought, the problem might be just to add port number " :8080 " to be able to see the site with external address ( ???.???.???.???:8080 ).



        I may have found the problem, it just happened to me. This is possibly linked to ubuntu firewall, it can be stopped with sudo ufw disable. This worked for me.






        share|improve this answer















        I suggest you edit the line:



         index index.html index.htm index.nginx-debian.html;  


        and write only the exact name of your index page, say index.html; for instance. This is how I managed with my own Nginx server.



        After second thought, the problem might be just to add port number " :8080 " to be able to see the site with external address ( ???.???.???.???:8080 ).



        I may have found the problem, it just happened to me. This is possibly linked to ubuntu firewall, it can be stopped with sudo ufw disable. This worked for me.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 19 at 12:36

























        answered Jan 16 at 9:31









        Dominik CorniceDominik Cornice

        32618




        32618






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1071208%2fbotched-my-nginx-install-making-it-worse%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents