[ale] Doing Something Dumb with Nginx

Jonathan Meek jonathan.l.meek at gmail.com
Mon Jan 8 21:53:52 EST 2018


Just tried using the DNS name alone, doing www.kennesawmassage.services
kennesawmassage.services, in the virtual.conf file and reloaded nginx. It
still redirected to nginx base page. The access_log and error_log settings
are in the /etc/nginx/nginx.conf. I dropped back to using /var/www/html and
using default for the night. It works as expected doing that. I assuming I
am doing something wrong in my server blocks and give it another shot
tomorrow evening. Thanks for the help everyone. I will have more updates
tomorrow or day after.

Jonathan

On Mon, Jan 8, 2018 at 9:10 PM, DJ-Pfulio via Ale <ale at ale.org> wrote:

> I don't know if server_name can have an IP. I always use DNS names.
> Also, do you have access_log and error_log settings?
>
> Those are the only things you didn't post that I have in mine.
>
> On 01/08/2018 07:49 PM, Jonathan Meek via Ale wrote:
> > Sure no problem, Here it is (I changed out the IP address with xxx):
> > server {
> >     listen       80;
> >     server_name  xxx.xxx.xxx.xx;
> >
> >     location / {
> >         root   /var/www/wangsmassage;
> >         index  index.html;
> >     }
> > }
> >
> > server {
> >     listen       80;
> >     server_name  www.kennesawmassage.services;
> >
> >     location / {
> >         root   /var/www/wangsmassage;
> >         index  index.html;
> >     }
> > }
> >
> > I tried to do server_name xxx.xxx.xxx.xx www.kennesawmassage.services
> > but that didn't work.
> >
> > Jonathan
> >
> > On Sun, Jan 7, 2018 at 11:16 PM, Kyle Brieden <kyle at txmoose.com
> > <mailto:kyle at txmoose.com>> wrote:
> >
> >     Hey Jonathan,
> >
> >     Would you be able to share the server block of the vhost?  That
> >     would help us diagnose the issue.
> >
> >
> >
> >     ---
> >     Very respectfully,
> >     Kyle Brieden
> >
> >
> >     On 07-01-2018 21:51, Jonathan Meek via Ale wrote:
> >
> >         Hello folks,
> >
> >         I am running into an odd issue setting up Nginx on a Ubuntu
> >         16.04 box.
> >         I cannot seem to get the domain names to render. If I navigate
> >         to the
> >         IP address, the site appears no problem but when I navigate to
> the
> >         domain name, it just renders the nginx welcome page.
> >
> >         I have tried adding the domain name to the server_name parameter
> >         to my
> >         /etc/nginx/conf.d/virtual.conf and reloading nginx but that
> didn't
> >         work.
> >
> >         As a side note, I did add the nameservers to domain early this
> >         evening, not sure if makes a difference. I did create the A,
> AAAA, &
> >         NS records as well.
> >
> >         I feel like I am doing something dumb but can't put my finger on
> >         it so
> >         any pointers in the right direction would be appreciated.
> >
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20180108/dc2e2746/attachment.html>


More information about the Ale mailing list