[ale] Doing Something Dumb with Nginx
Chuck Payne
terrorpup at gmail.com
Mon Jan 8 20:50:44 EST 2018
Jonathan,
What is under your conf.d folder? Here what I have, I run nginx on Debian,
so I have to make sure my site are under sites-enabled. On
RHEL/CENTOS/openSUSE I have to have my sites under conf.d. I hope that
helps.
Debian
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
├── *conf.d*
├── *sites-available*
│ ├── cloud.conf
│ ├── default
│ ├── default.dpkg-old
│ ├── inferno.conf
│ └── softmeta.conf
├── *sites-enabled*
│ ├── *cloud.conf* -> /etc/nginx/sites-available/cloud.conf
│ ├── *inferno.conf* -> /etc/nginx/sites-available/inferno.conf
│ └── *softmeta.conf* -> /etc/nginx/sites-available/softmeta.conf
RHEL/CentOS/openSUSE
In my nginx.conf
include conf.d/*.conf;
├── *conf.d*
│ ├── graylog.conf
│ ├── mon.conf
│ ├── monitoradmin.conf
│ ├── rundeck.conf
│ ├── sema.conf
│ ├── spacewalk.conf
│ └── tower.conf
On Mon, Jan 8, 2018 at 8:42 PM, Jonathan Meek <jonathan.l.meek at gmail.com>
wrote:
> Hey Chuck,
>
> Thanks for the suggestion but it did not work for me. the domain name
> still routes to the nginx welcome page instead of the site.
>
> On Mon, Jan 8, 2018 at 8:21 PM, Chuck Payne <terrorpup at gmail.com> wrote:
>
>> Jonathan,
>>
>> Try checking listen 80 to
>>
>> listen xxx.xxx.xxx.xxx 80;
>>
>> Give that a shot.
>>
>> Chuck
>>
>> On Mon, Jan 8, 2018 at 7:49 PM, Jonathan Meek via Ale <ale at ale.org>
>> 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> 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.
>>>>>
>>>>> Jonathan
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>>
>> --
>> Terror PUP a.k.a
>> Chuck "PUP" Payne
>> -----------------------------------------
>> Discover it! Enjoy it! Share it! openSUSE Linux.
>> -----------------------------------------
>> openSUSE -- Terrorpup
>> openSUSE Ambassador/openSUSE Member
>> skype,twiiter,identica,friendfeed -- terrorpup
>> freenode(irc) --terrorpup/lupinstein
>> Register Linux Userid: 155363
>>
>> Have you tried SUSE Studio? Need to create a Live CD, an app you want to
>> package and distribute , or create your own linux distro. Give SUSE Studio
>> a try.
>>
>
>
--
Terror PUP a.k.a
Chuck "PUP" Payne
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- Terrorpup
openSUSE Ambassador/openSUSE Member
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363
Have you tried SUSE Studio? Need to create a Live CD, an app you want to
package and distribute , or create your own linux distro. Give SUSE Studio
a try.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20180108/69ecd6c0/attachment.html>
More information about the Ale
mailing list