<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Non classé Archives - Mon site</title>
	<atom:link href="https://mosmostech.com/category/non-classe/feed/" rel="self" type="application/rss+xml" />
	<link>https://mosmostech.com/category/non-classe/</link>
	<description>Mon site WordPress</description>
	<lastBuildDate>Wed, 17 Dec 2025 15:23:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://mosmostech.com/wp-content/uploads/2025/12/cropped-Systems_and_technology_programming_company_logo__1_-removebg-preview-32x32.png</url>
	<title>Non classé Archives - Mon site</title>
	<link>https://mosmostech.com/category/non-classe/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>AutoSSl with Cloudflare</title>
		<link>https://mosmostech.com/autossl-with-cloudflare/</link>
					<comments>https://mosmostech.com/autossl-with-cloudflare/#respond</comments>
		
		<dc:creator><![CDATA[admin-mostech]]></dc:creator>
		<pubDate>Fri, 24 Aug 2018 13:35:00 +0000</pubDate>
				<category><![CDATA[Non classé]]></category>
		<guid isPermaLink="false">https://mosmostech.com/?p=1898</guid>

					<description><![CDATA[<p>With cPanel offering autossl to provide any site with DNS that points to the server with a free SSL this has been great for many domains, however many people use CloudFlare as a caching service and the proxy aspect of their service the IP of the site no longer points to the server and thus [&#8230;]</p>
<p>The post <a href="https://mosmostech.com/autossl-with-cloudflare/">AutoSSl with Cloudflare</a> appeared first on <a href="https://mosmostech.com">Mon site</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>With cPanel offering autossl to provide any site with DNS that points to the server with a free SSL this has been great for many domains, however many people use CloudFlare as a caching service and the proxy aspect of their service the IP of the site no longer points to the server and thus will not process the request properly for the DCV verification.&nbsp; Just recently cPanel did add in the option for DNS verification, but the bulk many people this will not be a seamless option for them and the text file verification will be still for a long time to come the AutoSSL main verification method.&nbsp; This will work for either type of SSL support in cPanel, cPanle/Comodo and Letsencrypt.</p>



<p>In Cloudflare you will need to make these changes:</p>



<p>On the Crypto Tab (padlock icon) set:</p>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0;">
  Always use HTTPS&nbsp; OFF<br><br>
  Redirect all requests with scheme “http” to “https”. This applies to all http requests to the zone.
</p>



<p></p>



<p>Then under Page Rules (funnel icon) you will need to add 2 rules the first being one of the following:</p>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0;">
  For cPanel/Comodo:<br><br>
  http://*domain.com/.well-known/pki-validation/*<br><br>
  SSL: off<br>
  Automatic HTTPS rewrites: off
</p>



<div style="height:37px" aria-hidden="true" class="wp-block-spacer"></div>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0;">
  For Letsencrypt:<br><br>
  http://*domain.com/.well-known/acme-challenge/*<br><br>
  SSL: off<br>
  Automatic HTTPS rewrites: off
</p>



<p></p>



<p>The next rule is:</p>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0;">
  http://*domain.com/*<br><br>
  Always use HTTPS
</p>



<p></p>



<p>The first rule you will chose depending on which system you are on, by default this will be cPanel/Comodo. However many people do enable Letsencrypt as it can issue a SSL very quickly.&nbsp;&nbsp;&nbsp; The first part is the path for the DCV text file they make. Then it will disable the SSL support and keep it from rewriting as well.&nbsp; This will allow it to properly read the site when it has no SSL added yet.&nbsp; The second rule then re-enables SSL support.</p>



<p>This would need to be done for each domain you own and run under Cloudflare.&nbsp; This will allow you to run Cloudflare in Full Strict SSL support as both ends will have a valid working SSL for use with the domain.</p>
<p>The post <a href="https://mosmostech.com/autossl-with-cloudflare/">AutoSSl with Cloudflare</a> appeared first on <a href="https://mosmostech.com">Mon site</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mosmostech.com/autossl-with-cloudflare/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>CPanel Change the ip of an add-on domain or subdomain</title>
		<link>https://mosmostech.com/cpanel-change-addon-domain-or-subdomain-ip/</link>
					<comments>https://mosmostech.com/cpanel-change-addon-domain-or-subdomain-ip/#respond</comments>
		
		<dc:creator><![CDATA[admin-mostech]]></dc:creator>
		<pubDate>Thu, 09 Aug 2012 13:56:00 +0000</pubDate>
				<category><![CDATA[Non classé]]></category>
		<guid isPermaLink="false">https://mosmostech.com/?p=1902</guid>

					<description><![CDATA[<p>In cPanel by default any addon domain or subdomain will share the IP of the main domain / account it was made under.&#160; But what if you wanted a dedicated IP?&#160; This can be done but not within cPanel and allow it to be cPanel friendly!&#160; This will require SSH access and some editing via [&#8230;]</p>
<p>The post <a href="https://mosmostech.com/cpanel-change-addon-domain-or-subdomain-ip/">CPanel Change the ip of an add-on domain or subdomain</a> appeared first on <a href="https://mosmostech.com">Mon site</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In cPanel by default any addon domain or subdomain will share the IP of the main domain / account it was made under.&nbsp; But what if you wanted a dedicated IP?&nbsp; This can be done but not within cPanel and allow it to be cPanel friendly!&nbsp; This will require SSH access and some editing via the command line and a rebuild of the apache config.</p>



<p>First SSH into the server and browse over and edit to (replacing $user and $domain with what you wish to modify) :</p>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0;">
  nano -w /var/cpanel/userdata/$user/$domain.com
</p>



<p></p>



<p>In this file you can modify the IP of the subdomain or addon domain.  The contents of the file will look like this:</p>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0; white-space:pre-wrap;">
documentroot: /home/user/public_html/sub1
group: user
hascgi: 1
homedir: /home/user
ip: 127.0.0.1
no_cache_update: 0
phpopenbasedirprotect: 1
serveradmin: webmaster@sub1.domain.com
serveralias: www.sub1.domain.com
servername: sub1.domain.com
usecanonicalname: &#8216;Off&#8217;
user: user
userdirprotect: &#8221;
</p>



<p></p>



<p>Now you can change the IP to that of another IP on the server that is not being used (If you are doing this for SSL purposes this IS key that the IP is not already in use or else WHM will not allow you to install the cert and would have to do it manually as I described in:&nbsp;&nbsp;<a href="https://web.archive.org/web/20180825145354/http://mosmostech.com/2011/09/wildcard-ssl-certs-and-cpanel/" target="_blank" rel="noreferrer noopener">http://mosmostech.com/2011/09/wildcard-ssl-certs-and-cpanel/</a>&nbsp;)</p>



<p>After the change save the work and you will need to rebuild the apache config and restart apache (with a backup of the config to be safe):</p>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0; white-space:pre-wrap;">
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak
/scripts/rebuildhttpdconf

service httpd restart
</p>



<p></p>



<p>You should be all set to use the new IP.&nbsp; Just update your DNS manually to point to the proper IP.&nbsp; Doing this will not allow cPanel to make changes for you on IP functions or DNS functions so you must keep that in mind down the road.</p>
<p>The post <a href="https://mosmostech.com/cpanel-change-addon-domain-or-subdomain-ip/">CPanel Change the ip of an add-on domain or subdomain</a> appeared first on <a href="https://mosmostech.com">Mon site</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mosmostech.com/cpanel-change-addon-domain-or-subdomain-ip/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>htacess rewrite rule to remove a subfolder from a url</title>
		<link>https://mosmostech.com/htaccess-rewrite-rule-remove-subfolder-from-url/</link>
					<comments>https://mosmostech.com/htaccess-rewrite-rule-remove-subfolder-from-url/#respond</comments>
		
		<dc:creator><![CDATA[admin-mostech]]></dc:creator>
		<pubDate>Wed, 27 Jun 2012 14:13:00 +0000</pubDate>
				<category><![CDATA[Non classé]]></category>
		<guid isPermaLink="false">https://mosmostech.com/?p=1907</guid>

					<description><![CDATA[<p>Using .htaccess you can do many things.&#160; This small tidbit will focus on removing and rewriting (mask, hide) the subfolder aspect on a URL to only have the base domain present.&#160; You will want to create a .htaccess file if one is not present already in your public_html (or main doc root) for the site. [&#8230;]</p>
<p>The post <a href="https://mosmostech.com/htaccess-rewrite-rule-remove-subfolder-from-url/">htacess rewrite rule to remove a subfolder from a url</a> appeared first on <a href="https://mosmostech.com">Mon site</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Using .htaccess you can do many things.&nbsp; This small tidbit will focus on removing and rewriting (mask, hide) the subfolder aspect on a URL to only have the base domain present.&nbsp; You will want to create a .htaccess file if one is not present already in your public_html (or main doc root) for the site.</p>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0;">
  nano -w .htaccess
</p>



<p></p>



<p>Yes I like nano! got something with it? Ha.&nbsp; Use whatever you like such as VIM if you prefer.&nbsp; Next you will add the following text to the file.</p>



<p style="background:#0FAF9F; color:#fff; padding:16px; border-radius:8px; margin:0; white-space:pre-wrap;">
RewriteEngine On
RewriteRule ^$ sub/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ sub/$1
</p>



<p></p>



<p>This will assume you have http://domain.com/sub as where the content you want to load is.  And the resulting URL to only show http://domain.com butstill load the content in in the /sub folder.<br><br>This could be modified many ways to suit the needs for the application at hand.</p>
<p>The post <a href="https://mosmostech.com/htaccess-rewrite-rule-remove-subfolder-from-url/">htacess rewrite rule to remove a subfolder from a url</a> appeared first on <a href="https://mosmostech.com">Mon site</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mosmostech.com/htaccess-rewrite-rule-remove-subfolder-from-url/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
