<?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>btard deleted nostatus &#187; Apache</title> <atom:link href="http://nostatus.com/tag/apache/feed" rel="self" type="application/rss+xml" /><link>http://nostatus.com</link> <description>Affiliate marketing, SEO and Online Gaming.</description> <lastBuildDate>Tue, 31 Jan 2012 23:11:19 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>htaccess Rewrite Cheatsheet</title><link>http://nostatus.com/web/htaccess-rewrite-cheatsheet.html</link> <comments>http://nostatus.com/web/htaccess-rewrite-cheatsheet.html#comments</comments> <pubDate>Thu, 14 Aug 2008 08:13:54 +0000</pubDate> <dc:creator>Carlo</dc:creator> <category><![CDATA[Web]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[htaccess]]></category> <category><![CDATA[mod_rewrite]]></category> <category><![CDATA[rewrites]]></category> <guid
isPermaLink="false">http://nostatus.com/?p=660</guid> <description><![CDATA[CODE: # Site has permanently moved to new domain # domain1.com to domain2.com RewriteCond %{HTTP_HOST} ^www.domain1.com$ [NC] RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L] CODE: # Page has moved temporarily # domain.com/old_page.html to domain.com/new_page.html RewriteRule ^old_page.html$ new_page.html [R,NC,L] CODE: # SEO / Pretty &#8230; <a
href="http://nostatus.com/web/htaccess-rewrite-cheatsheet.html">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>CODE:<br
/> # Site has permanently moved to new domain<br
/> # domain1.com to domain2.com<br
/> RewriteCond   %{HTTP_HOST}   ^www.domain1.com$   [NC]<br
/> RewriteRule   ^(.*)$   http://www.domain2.com/$1   [R=301,L]</p><p>CODE:<br
/> # Page has moved temporarily<br
/> # domain.com/old_page.html to domain.com/new_page.html<br
/> RewriteRule   ^old_page.html$   new_page.html   [R,NC,L]</p><p>CODE:<br
/> # SEO / Pretty URLs (no query string)<br
/> # domain.com/category-name-1/ to domain.com/categories.php?name=category-name-1<br
/> RewriteRule   ^([A-Za-z0-9-]+)/?$   categories.php?name=$1 [L]</p><p>CODE:<br
/> # Pretty URLs with pagination (no query string)<br
/> # domain.com/section/title/5 to domain.com/section.php?name=title&amp;page=5<br
/> RewriteRule   ^section/([A-Za-z0-9-]+)/([0-9]+)/?$   section.php?name=$1&amp;page=$2 [L]</p><p>CODE:<br
/> # Block referrer spam<br
/> RewriteCond  %{HTTP_REFERRER}  (casino)  [NC,OR]<br
/> RewriteCond  %{HTTP_REFERRER}  (poker)  [NC]<br
/> RewriteRule  .*  &#8211;  [F]</p><p>CODE:<br
/> # Block image hotlinking<br
/> RewriteEngine On<br
/> RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]<br
/> RewriteCond %{HTTP_REFERER} !^$<br
/> RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://domain.com/nohotlink.gif [L]</p><p>CODE:<br
/> # Block image hotlinking from myspace<br
/> RewriteEngine On<br
/> RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]<br
/> RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://domain.com/nohotlink.gif [L]</p> ]]></content:encoded> <wfw:commentRss>http://nostatus.com/web/htaccess-rewrite-cheatsheet.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Apache 2.2</title><link>http://nostatus.com/geek/apache-22.html</link> <comments>http://nostatus.com/geek/apache-22.html#comments</comments> <pubDate>Thu, 10 Apr 2008 18:14:39 +0000</pubDate> <dc:creator>Carlo</dc:creator> <category><![CDATA[Geek]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[computers]]></category> <category><![CDATA[Web]]></category> <guid
isPermaLink="false">http://nostatus.com/?p=400</guid> <description><![CDATA[I screwed up our server&#8217;s logging recently through lack of sleep, lack of caffeine reaction and silliness. In a word, I was tired and not paying attention. In /etc/apache2/sites-available/ you list all the configuration files for your websites. In /etc/apache2/sites-enabled/ &#8230; <a
href="http://nostatus.com/geek/apache-22.html">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I screwed up our server&#8217;s logging recently through lack of sleep, lack of caffeine reaction and silliness. In a word, I was tired and not paying attention.</p><p>In /etc/apache2/sites-available/ you list all the configuration files for your websites. In /etc/apache2/sites-enabled/ you make a symlink to the sites in /sites-available/</p><p>Sounds straight forward:</p><blockquote><p>ln -s /etc/apache2/sites-available/www.domain.com .</p></blockquote><p>So now if you want to deactivate a site simply remove the symlink. I made the mistake this morning of performing this command inside the /sites-enabled/ directory:</p><blockquote><p>cp domain-config domain-config.0001</p></blockquote><p>This was using the symlink to the file in the /sites-available/ and copying it to domain-config.0001. MUY Stupido but that said I don&#8217;t know how it screwed up the logging&#8230;</p><p>Lesson learned and everythings hunky dory again.</p> ]]></content:encoded> <wfw:commentRss>http://nostatus.com/geek/apache-22.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
