<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5487&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] nginx modules-available error]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5487</link>
		<description><![CDATA[The most recent posts in [SOLVED] nginx modules-available error.]]></description>
		<lastBuildDate>Sat, 21 Jan 2023 21:07:42 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40459#p40459</link>
			<description><![CDATA[<p>OK, problem solved ... the modules line has been deleted and realupnow.com renamed to realupnow.com.conf and the symlink fixed (sites-available to sites-enabled).</p><p>Making progress ... will mark this one as solved (cut &amp; paste error or something) ... will open a new thread ...</p>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Sat, 21 Jan 2023 21:07:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40459#p40459</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40458#p40458</link>
			<description><![CDATA[<p>I&#039;ve tried reading the nginx instructions but find gaps and a lot of emphasis on their commercial version.</p><p>Rather than post every little question here I&#039;m trying to Search for similar problems and then try to learn from them.</p><p>I&#039;ve observed, in this Forum, that people offering help often point to non-official nginx sources where they&#039;ve found explanations and examples.</p><p>(At this point it would be worth it to pay someone to set this up for me, nginx, local dns, ssl, and etc &amp; successfully serving web pages - where I was before but for the unstable RAID1 setup. Locals either don&#039;t know this stuff or can&#039;t take on any new projects.)</p><p>Meanwhile, I&#039;ll just have to keep thrashing about until I get it working, again ...</p>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Sat, 21 Jan 2023 20:34:53 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40458#p40458</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40453#p40453</link>
			<description><![CDATA[<div class="quotebox"><cite>dcolburn wrote:</cite><blockquote><div><p>I misread this thread as installing the module to populate defaults rather than merely using it because the OP wanted it.</p></div></blockquote></div><p>One of many reasons to read the manuals rather than just copying random things from stackoverflow...</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sat, 21 Jan 2023 18:43:30 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40453#p40453</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40452#p40452</link>
			<description><![CDATA[<div class="quotebox"><cite>steve_v wrote:</cite><blockquote><div><div class="quotebox"><cite>dcolburn wrote:</cite><blockquote><div><p>Am I correct that I need to install nginx-module-geoip?</p></div></blockquote></div><p>That depends on whether or not you want to use module-geoip, no? I can&#039;t make that determination for you.</p></div></blockquote></div><p>Please disregard that question - I misread this thread as installing the module to populate defaults rather than merely using it because the OP wanted it.</p><p><span class="bbc">https://stackoverflow.com/questions/36554405/how-to-enable-dynamic-module-with-an-existing-nginx-installation</span></p>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Sat, 21 Jan 2023 18:33:34 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40452#p40452</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40451#p40451</link>
			<description><![CDATA[<div class="quotebox"><cite>dcolburn wrote:</cite><blockquote><div><div class="codebox"><pre><code>include /etc/nginx/modules-enabled/realupnow.conf;</code></pre></div></div></blockquote></div><p>Well yeah, obviously. If you tell nginx to incude a file, it&#039;s going to try to load it, and it&#039;s going to bitch if it doesn&#039;t exist.</p><p>modules-enabled should (IIRC, I actually run apache, but the config directory layout is much the same, it&#039;s a Debian thing) contains symlinks to files in modules-available, which in turn contain load_module directives pointing at dynamic module .so files.</p><p>Only you can explain the presence of that include line, it&#039;s certainly not in any default configuration shipped with Devuan.</p><div class="quotebox"><cite>dcolburn wrote:</cite><blockquote><div><p>Am I correct that I need to install nginx-module-geoip?</p></div></blockquote></div><p>That depends on whether or not you want to use module-geoip, no? I can&#039;t make that determination for you.</p><p>Ed. Since we&#039;re playing the edit game...</p><div class="quotebox"><cite>dcolburn wrote:</cite><blockquote><div><p>WDYT?</p></div></blockquote></div><p>I think you should slow down, and go read the nginx manuals instead of jumping on random stackexchange and reddit posts.</p><p>Aside, while having your site definition in modules-enabled might work if you include it from some other config, it&#039;s pretty high on the list of &quot;things that will cause a bunch of gratuitious confusion in about 2 hours time&quot;. Put it where it&#039;s supposed to go.</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sat, 21 Jan 2023 18:23:36 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40451#p40451</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40450#p40450</link>
			<description><![CDATA[<p>Ha! Found it on the backup USB drive (BTW: Deja Dup did not do a clean job of saving stuff at all.)</p><div class="codebox"><pre class="vscroll"><code>##
# Virtual Host configuration for realupnow.com
#
# Be sure to symlink this to ~/sites-enabled/ to enable it.
# sudo ln -s /etc/nginx/sites-available/realupnow.com /etc/nginx/sites-enabled/realupnow.com
#

server {
    listen 80;
    root /var/www/realupnow.com;
#   index index.html index.htm index.nginx-debian.html index.php;
    server_name realupnow.com www.realupnow.com;

    listen 443 ssl;

	location / {
		try_files $uri $uri/ =404;
	}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
	}

    # RSA certificate
    ssl_certificate /etc/letsencrypt/live/realupnow.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/realupnow.com/privkey.pem;
    ssl_dhparam /etc/ssl/certs/dhparam.pem;

	include /etc/letsencrypt/options-ssl-nginx.conf;

    # Redirect non-https traffic to https
    if ($scheme != &quot;https&quot;) {
        return 301 https://$host$request_uri;
    }
}</code></pre></div><p>Just found this .. <span class="bbc">https://www.reddit.com/r/nginx/comments/j11tr3/whats_up_with_the_modulesenabled_directory/</span></p><p>It&#039;s incomplete but a little helpful ...</p><p>The relationship between <span class="bbc">/etc/nginx/modules-available/</span> <span class="bbc">/usr/share/nginx/modules-available/</span> and <span class="bbc">/etc/nginx/modules-enabled/</span> is unclear to me ... it&#039;s more complex than the singular relationship between <span class="bbc">/etc/nginx/sites-available</span> and <span class="bbc">/etc/nginx-sites-enabled</span></p><p>And, I&#039;m still worried that I may have broken something somewhere and maybe should completely uninstall and re-install nginx.</p><p>(Note: php-fpm has also been installed - I don&#039;t know if that might be impacted by anything I&#039;ve done so far.)</p><p>WDYT?</p>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Sat, 21 Jan 2023 18:14:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40450#p40450</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40449#p40449</link>
			<description><![CDATA[<p>I&#039;m sorry ... I&#039;m getting tangled in the threads ...</p><p><span class="bbc">nginx -t</span> fusses about <span class="bbc">/etc/nginx/modules-enabled/realupnow.conf</span> not being present.</p><p>This was in the sample code <span class="bbc">include /etc/nginx/modules-enabled/*.conf;</span> but it errored - now I recall changing it ...</p><p>And now I recall that I never closed the loop on hunting the realupnow.conf file to put there ... sigh.</p><div class="codebox"><pre class="vscroll"><code>user www-data;
error_log logs/error.log notice;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/realupnow.conf;
load_module modules/ndk_http_module.so;
load_module modules/ngx_http_lua_module.so;
# include conf.d/http;
# include conf.d/stream;
# include conf.d/exchange-enhanced;

events {
	worker_connections 768;
	# multi_accept on;
}

http {

	##
	# Basic Settings
	##

	sendfile on;
	tcp_nopush on;
	types_hash_max_size 2048;
	# server_tokens off;

	# server_names_hash_bucket_size 64;
	# server_name_in_redirect off;

	server {
		listen     localhost:80;
	}

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# SSL Settings
	##

	ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##

	gzip on;

	# gzip_vary on;
	# gzip_proxied any;
	# gzip_comp_level 6;
	# gzip_buffers 16 8k;
	# gzip_http_version 1.1;
	# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

	##
	# Virtual Host Configs
	##

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}

#mail {
#	# See sample authentication script at:
#	# http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
#	# auth_http localhost/auth.php;
#	# pop3_capabilities &quot;TOP&quot; &quot;USER&quot;;
#	# imap_capabilities &quot;IMAP4rev1&quot; &quot;UIDPLUS&quot;;
#
#	server {
#		listen     localhost:110;
#		protocol   pop3;
#		proxy      on;
#	}
#
#	server {
#		listen     localhost:143;
#		protocol   imap;
#		proxy      on;
#	}
#}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Sat, 21 Jan 2023 18:02:51 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40449#p40449</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40448#p40448</link>
			<description><![CDATA[<p>As you haven&#039;t told us what&#039;s in that file, I suppose I have to guess... <br />Going by your previous threads, perhaps it&#039;s the site definition for something you&#039;re trying to serve on the domain realupnow.com? If that is case, it&#039;s simply in the wrong directory, and the only explanation I can think of is that somebody put it there...</p>]]></description>
			<author><![CDATA[dummy@example.com (steve_v)]]></author>
			<pubDate>Sat, 21 Jan 2023 17:59:58 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40448#p40448</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] nginx modules-available error]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=40447#p40447</link>
			<description><![CDATA[<p><span class="bbc">/etc/nginx/modules-available/</span> is empty</p><p><span class="bbc">/usr/share/nginx/modules-available/</span> is populated</p><p><span class="bbc">/etc/nginx/modules-enabled/</span> is populated</p><p>But <span class="bbc">/etc/nginx/modules-enabled/realupnow.conf</span>&quot; failed</p><p>I am familiar with sites-enabled and sited-enabled but cannot find anything online that explains modules-available and modules-enabled in a way that shows me how realupnow-conf would get there.</p><p>EDIT: Am I correct that I need to install <span class="bbc">nginx-module-geoip</span>? <a href="https://stackoverflow.com/questions/36554405/how-to-enable-dynamic-module-with-an-existing-nginx-installation" rel="nofollow">https://stackoverflow.com/questions/365 … stallation</a></p>]]></description>
			<author><![CDATA[dummy@example.com (dcolburn)]]></author>
			<pubDate>Sat, 21 Jan 2023 17:46:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=40447#p40447</guid>
		</item>
	</channel>
</rss>
