<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Other virtualhost or sites]]></title>
		<link>https://forum.iredmail.org/topic21099-other-virtualhost-or-sites.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21099.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Other virtualhost or sites.]]></description>
		<lastBuildDate>Fri, 20 Mar 2026 08:29:10 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Other virtualhost or sites]]></title>
			<link>https://forum.iredmail.org/post91806.html#p91806</link>
			<description><![CDATA[<p>I have found the issue why the new virtualhost was not working showing the page generated with the php scripts, it was because of missing the line with the <strong>&#039;include /etc/nginx/templates/hsts.tmpl;&#039;</strong>.</p><p>Here is my virtualhost file I use to display the PhpMyAdmin login page following the tutorial I followed linked in one of my previous posts :<br /></p><div class="codebox"><pre><code>server {
    listen 80;
    listen [::]:80;
    server_name pma.&lt;mydomain&gt;.&lt;ext&gt;;
    root /var/www/phpmyadmin/;
    index index.php;

    access_log /var/log/nginx/phpmyadmin_access.log;
    error_log /var/log/nginx/phpmyadmin_error.log;

    location / {
        try_files $uri $uri/ /index.php;
    }

    location ~ ^/(doc|sql|setup)/ {
        deny all;
    }

    location ~ \.php$ {
        include fastcgi_params;
        include /etc/nginx/templates/hsts.tmpl;
        fastcgi_pass 127.0.0.1:9999;
        include snippets/fastcgi-php.conf;
    }

    location ~ /\.ht {
        deny all;
    }

    allow 127.0.0.1;
    deny all;
}</code></pre></div><p>After adding this &#039;include&#039; the page display shows the login page correctly instead of a blank page.</p>]]></description>
			<author><![CDATA[null@example.com (LaurentM)]]></author>
			<pubDate>Fri, 20 Mar 2026 08:29:10 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91806.html#p91806</guid>
		</item>
		<item>
			<title><![CDATA[Re: Other virtualhost or sites]]></title>
			<link>https://forum.iredmail.org/post91757.html#p91757</link>
			<description><![CDATA[<p>As mentioned in iRedMail installation tutorials, iRedMail requires a fresh OS.<br />You can install iRedMail on a fresh OS first, then install other applications you need.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 04 Mar 2026 04:06:50 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91757.html#p91757</guid>
		</item>
		<item>
			<title><![CDATA[Re: Other virtualhost or sites]]></title>
			<link>https://forum.iredmail.org/post91752.html#p91752</link>
			<description><![CDATA[<p>In Firefox web browser, if I press CTRL+U, I get some php code, but the page displayed is blank.<br />I am missing something with the fastcgi parameters to get the PHP code display correctly.</p>]]></description>
			<author><![CDATA[null@example.com (LaurentM)]]></author>
			<pubDate>Tue, 03 Mar 2026 17:05:38 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91752.html#p91752</guid>
		</item>
		<item>
			<title><![CDATA[Re: Other virtualhost or sites]]></title>
			<link>https://forum.iredmail.org/post91751.html#p91751</link>
			<description><![CDATA[<p>But it does not explain why I cannot access PhpMyAdmin site.</p><p>I followed the tutorial found <a href="https://linuxcapable.com/how-to-install-phpmyadmin-with-nginx-on-debian-linux/">HERE</a></p><p>My config file in /etc/nginx/sites-available is as following:<br /></p><div class="quotebox"><blockquote><p>server {<br />&nbsp; &nbsp; listen 80;<br />&nbsp; &nbsp; listen [::]:80;<br />&nbsp; &nbsp; server_name pma.&lt;mydomain&gt;.&lt;ext&gt;;<br />&nbsp; &nbsp; root /var/www/phpmyadmin/;<br />&nbsp; &nbsp; index index.php index.html index.htm index.nginx-debian.html;</p><p>&nbsp; &nbsp; access_log /var/log/nginx/phpmyadmin_access.log;<br />&nbsp; &nbsp; error_log /var/log/nginx/phpmyadmin_error.log;</p><p>&nbsp; &nbsp; location / {<br />&nbsp; &nbsp; try_files $uri $uri/ /index.php;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; location ~ ^/(doc|sql|setup)/ {<br />&nbsp; &nbsp; deny all;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; location ~ \.php$ {<br />&nbsp; &nbsp; fastcgi_pass 127.0.0.1:9999;<br />&nbsp; &nbsp; include snippets/fastcgi-php.conf;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; location ~ /\.ht {<br />&nbsp; &nbsp; deny all;<br />&nbsp; &nbsp; }</p><p>}</p></blockquote></div><p>The only thing I changed in the provided config file is the &#039;fastcgi_pass unix:/run/php/php8.2-fpm.sock;&#039; which is now &#039;fastcgi_pass 127.0.0.1:9999;&#039; as the &#039;.sock&#039; does not exist anymore after the iRedMail installation.</p><p>Do somebody have a clue?</p>]]></description>
			<author><![CDATA[null@example.com (LaurentM)]]></author>
			<pubDate>Tue, 03 Mar 2026 16:52:40 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91751.html#p91751</guid>
		</item>
		<item>
			<title><![CDATA[Re: Other virtualhost or sites]]></title>
			<link>https://forum.iredmail.org/post91750.html#p91750</link>
			<description><![CDATA[<p>I found the issue.<br />In the /etc/nginx/sites_available/00-default-ssl.conf it was missing a line to with &#039;include /etc/nginx/templates/adminer.tmpl;&#039;.</p><p>I added this line and I could get the http://&lt;myservername&gt;.&lt;mydomain&gt;.&lt;ext&gt;/adminer work with the latest.php file downloaded from adminer web site as described in the adminer.tmpl file.</p>]]></description>
			<author><![CDATA[null@example.com (LaurentM)]]></author>
			<pubDate>Tue, 03 Mar 2026 16:38:47 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91750.html#p91750</guid>
		</item>
		<item>
			<title><![CDATA[Other virtualhost or sites]]></title>
			<link>https://forum.iredmail.org/post91749.html#p91749</link>
			<description><![CDATA[<p>Before my installation of iRedMail on Debian trixie, I installed and configured MariaDB and PhpMyAdmin with use under Nginx.<br />All worked fine and I could get to the PhpMyAdmin portal throught the web browser and access the different databases as I wanted.</p><p>After installation of iRedMail, the configuration as been copied in a backup folder of nginx for old configurations.<br />I could see that the &#039;fastcgi_pass&#039; was wrong and was no more a unix file to access but a service to listen on port 9999 on localhost.</p><p>I changed this but did not get the configuration working even with this changed.</p><p>So I checked the templates folder for nginx with the SOGo, Roundcube, iRedAdmin, etc. configurations and I could see there a template file for Adminer.</p><p>I opened it and followed the steps written inside this file to download the latest version and stored it in the /opt/www/adminer folder and did the &#039;chmod&#039; as written.</p><p>I had a 404 error showing that the /var/www/html/adminer file or folder was not found.</p><p>So I created a adminer folder in the /var/www/html folder as requested and created also a link file to the /opt/www/adminer/latest.php file and then I got a 403 error that the file was not accessible.</p><p>How can I get adminer work ?</p><p>Why I cannot create other sites in the sites-available folder of nginx with just the change of the fastcgi_pass configuration to access the service instead of the unix file ?</p>]]></description>
			<author><![CDATA[null@example.com (LaurentM)]]></author>
			<pubDate>Tue, 03 Mar 2026 07:33:06 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91749.html#p91749</guid>
		</item>
	</channel>
</rss>
