[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Doing Something Dumb with Nginx



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.
>