<?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>Next Web Designs &#187; Linux Hosting</title>
	<atom:link href="http://nextwebdesigns.com/category/linux-hosting/feed/" rel="self" type="application/rss+xml" />
	<link>http://nextwebdesigns.com</link>
	<description>Growing the Artistic Web</description>
	<lastBuildDate>Wed, 14 Jul 2010 13:23:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SSHFS: A Perfect Remote File Manager?</title>
		<link>http://nextwebdesigns.com/2008/03/26/sshfs-a-perfect-remote-file-manager/</link>
		<comments>http://nextwebdesigns.com/2008/03/26/sshfs-a-perfect-remote-file-manager/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 01:26:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Hosting]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://nextwebdesigns.com/2008/03/26/sshfs-a-perfect-remote-file-manager/</guid>
		<description><![CDATA[SSHFS is a Fuse-based Linux filesystem that allows you to connect to an SSH server, and mount it as you would any other mountable device.  The difference is... this "device" is a remote server using an SSH connection.  At Holley Grove, we use SSHFS on all of our servers, SSHFS might be something you should [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/SSHFS">SSHFS</a> is a Fuse-based Linux filesystem that allows you to connect to an SSH server, and mount it as you would any other mountable device.  The difference is... this "device" is a remote server using an SSH connection.  At <a href="http://www.holleygrove.com">Holley Grove</a>, we use SSHFS on all of our servers, SSHFS might be something you should consider as well... here's just a few reasons why:</p>
<ol>
<li>You're basically using SSH to communicate.  SSH is encrypted, and as such can be one of the most secure methods of communication available.</li>
<li>The setup is relatively simple, as you only need a few libraries on the client computers, and an SSH server running on the remote server.</li>
<li>Permissions, users, and groups are all preserved as they would be using normal SSH.</li>
<li>You can turn off in-secure, un-encrypted FTP completely.</li>
<li>Fast access to files via your file manager application as if they were stored locally on your computer.  For Linux Gnome users, your SSHFS mounted shares will show up in Nautilus and act accordingly.</li>
</ol>
<p><strong>HowTo:</strong></p>
<p>For Ubuntu, simply install <strong>sshfs</strong> via the package manager.  You'll then need to add your Ubuntu user account to the Fuse group so that you'll have permission to use Fuse.  To do this, go to <em>System -&gt; Administration -&gt; Users and Groups</em>.  Click on your username and click the "Properties" button.  Make sure the checkbox for "fuse" is checked and save your settings.  You may need to log out and log back in for these changes to take effect.  Now you can mount an SSH server in the directory called "remote":</p>
<p><code>sshfs landon@holleygrove.com: remote</code></p>
<p>And to disconnect:</p>
<p><code>fusermount -u remote</code></p>
<p><a href="http://nextwebdesigns.com/wp-content/uploads/2008/03/screenshot.png" title="SSHFS Desktop Example"><img src="http://nextwebdesigns.com/wp-content/uploads/2008/03/screenshot.thumbnail.png" alt="SSHFS Desktop Example" align="right" hspace="5" vspace="5" /></a>It's great to be able to run a command to mount an SSH server, then pop open nautlius and have all the remote files and directories listed right there just as any other files!</p>
]]></content:encoded>
			<wfw:commentRss>http://nextwebdesigns.com/2008/03/26/sshfs-a-perfect-remote-file-manager/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Virtual Hosts with Apache and SSL Certificates</title>
		<link>http://nextwebdesigns.com/2007/12/21/using-virtual-hosts-with-apache-and-ssl-certificates/</link>
		<comments>http://nextwebdesigns.com/2007/12/21/using-virtual-hosts-with-apache-and-ssl-certificates/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 16:04:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Hosting]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://nextwebdesigns.com/?p=19</guid>
		<description><![CDATA[When we first started using our own server to host multiple client websites, one problem we commonly came across was "how can we host different virtual domains and different SSL certificates?"  After some research, we came to the same conclusion you probably already know, because of the SSL protocol, you can't use Virtual Hosts [...]]]></description>
			<content:encoded><![CDATA[<p>When we first started using our own server to host multiple client websites, one problem we commonly came across was "how can we host different virtual domains and different SSL certificates?"  After some research, we came to the same conclusion you probably already know, because of the SSL protocol, you can't use Virtual Hosts with SSL.  This is because SSL is encrypted, and it must be read and un-encrypted <strong>before</strong> the requested domain name can be read by Apache, because... <em>it is encypted</em>.</p>
<p>So, how can you provide your multiple clients with Virtual Domains their own SSL and https:// address?  You can:</p>
<ul>
<li>Let them share your server's SSL certificate, and server name (e.g. https://holleygrove.com/secure/CustomerName). This, unfortunately is a different domain name, so it may bring up a red flag to some shoppers, however, if you have a valid SSL certificate for <em>your</em> domain (holleygrove.com), the site will be valid and no security warnings will appear.</li>
<li>Redirect them to the https version of their domain name even though there is not a valid SSL certificate for their domain (or there is, but because of the SSL protocol, Apache cannot access it).  This will present the user with a domain name/ SSL certificate mis-match (which is bad), but the URL will read https://CustomerName.</li>
</ul>
<p>Both of the above solutions have compromises.  The best way to get around this is to use a separate IP address specifically for your VirtualDomain.  This will allow you to setup Apache to listen for your VitrualDomain... SSL (port 443) and HTTP (port 80) on this particular IP address.  Below is a working code excerpt from Apache 2.2 for a VirtualDomain listening on a separate IP address:</p>
<pre> # IP Based Virtual Host - Example.com - IP:  192.168.1.1
NameVirtualHost 192.168.1.1:80
&lt;VirtualHost 192.168.1.1:80&gt;
        ServerAdmin support@holleygrove.com
        DocumentRoot /home/example/public_html
        ServerName www.example.com
        ServerAlias example.com *.example.com
        ErrorLog /etc/httpd/groups/example/logs/error_log
        CustomLog /etc/httpd/groups/example/logs/access_log combined
        #TransferLog /etc/httpd/groups/example/logs/access_log
        &lt;Directory "/home/example/public_html"&gt;
                AllowOverride All
                Order allow,deny
                Allow from all
        &lt;/Directory&gt;
&lt;/VirtualHost&gt;</pre>
<p>Make sure to change the above directive to match your IP and system configuration, and place it in your Apache's configuration file.  Any IP-based VirtaulHost directives, such as the one above, should be placed after any non-IP based (name based) VirtualHost directives.</p>
]]></content:encoded>
			<wfw:commentRss>http://nextwebdesigns.com/2007/12/21/using-virtual-hosts-with-apache-and-ssl-certificates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Howto: Let Google Handle all your email!</title>
		<link>http://nextwebdesigns.com/2007/12/05/howto-let-google-handle-all-your-email/</link>
		<comments>http://nextwebdesigns.com/2007/12/05/howto-let-google-handle-all-your-email/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 14:59:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Hosting]]></category>

		<guid isPermaLink="false">http://nextwebdesigns.com/?p=4</guid>
		<description><![CDATA[For me, Linux hosting is great, for the most part it's straight forward, secure, reliable, and fast.  But, there's always been a sort of sore spot for me when administering my systems: email.  Email is arguably the hardest part of a server to setup... securely.  And for smaller sites and servers our email has been [...]]]></description>
			<content:encoded><![CDATA[<p>For me, Linux hosting is great, for the most part it's straight forward, secure, reliable, and fast.  But, there's always been a sort of sore spot for me when administering my systems: <strong>email</strong>.  Email is arguably the hardest part of a server to setup... <em>securely</em>.  And for smaller sites and servers our email has been plagued by a host of problems, security holes, SPAM, getting falsely labeled as SPAM, mailbox sizes, and viruses to name a few.  With the advent of Google apps, the days of hosting your own mail servers can be a thing of the past.</p>
<p>To get started, simply go to <a href="http://google.com/a">http://google.com/a</a> and sign up.  Google offers a basic edition, premier edition, and a pro-bono edition.  I've always used the basic edition and found it is more than adequate for smaller sites, but, if you're so inclined, you may want to spring for the premier edition.  Simply click on the signup button:</p>
<p><img src="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot1.png" alt="Sign Up" /></p>
<p><img src="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot2.png" alt="Basic Edition" /></p>
<p>Fill out the required information.  In this example, I'm using a domain I've already registered with GoDaddy called theartisticweb.com.</p>
<p><img src="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot3.png" alt="Domain Name" /></p>
<p>Now you'll need to create and administrator email account.  This is the main mail account that will be associated with our domain example.com.  I'll create "admin".  This can later be changed through the dashboard if you ever need to by adding another administrator and deleting this account.</p>
<p><img src="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot4.png" alt="Create Admin User" /></p>
<p><img src="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot5.png" alt="Create Admin User" /></p>
<p>We've now signed up our domain with Google apps.  The first thing we need to do is to validate our domain:</p>
<p><img src="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot6.png" alt="Domain Validation Notice" /></p>
<p>If you've used Google webmaster tools before, you're familiar with the domain validation process.  Basically we just need to create an HTML file (in this case called googlehostedservice.html) on our webserver with the text from Google inside.  Just click domain validate:</p>
<p><img src="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot7.png" alt="Domain Name Validation Form" /></p>
<p>Create a blank HTML file called googlehostedservice.html and add the required text to it, and upload it to your domain's root web folder.  Verify that you can read the link by clicking on it in your browser, then if all is good click verify.</p>
<p>The verification process is rather fast, so once you return to the dashboard, Google will probably have already verified your domain.  Now we can begin the email setup.</p>
<p>Click on the "Setup Email" link:</p>
<p><a href="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot8.png" title="Google Apps Email MX records Form"><img src="http://nextwebdesigns.com/wp-content/uploads/2007/12/screenshot8.thumbnail.png" alt="Google Apps Email MX records Form" /></a></p>
<p>Here you can choose what instructions Google will show you based on your DNS provider.  Ours is GoDaddy, so I select GoDaddy from the list, and follow the instructions.  <strong>Note:</strong> you must be using the nameservers of the company that is hosting your domain name in order for these insturctions to work.  If not, you will need to contact your domain name's DNS provider to change these settings for you.  By default, domain names use the DNS servers of the company you purchased the domain name from, e.g. GoDaddy, so you should be ok unless you've changed the nameservers for your domain somewhere along the line.</p>
<p>Once you've entered the MX records exactly as shown (don't forget a trailing "." if applicable), click ok.  It should take anywhere from 10 minutes to a day or two to update the DNS settings for your domain and Google apps.  If you've done the steps correctly, then just be patient.  You can use dnstools.com to check the status of your MX records, or on a *NIX machine type</p>
<p><code>dig example.com MX</code></p>
<p>to get a reading on your MX records.  Once they've updated, you can then use Google's server to handle all of your company's email!  Presto!</p>
]]></content:encoded>
			<wfw:commentRss>http://nextwebdesigns.com/2007/12/05/howto-let-google-handle-all-your-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Rotate VirtualHost Log Files with Logrotate</title>
		<link>http://nextwebdesigns.com/2007/11/09/hello-world/</link>
		<comments>http://nextwebdesigns.com/2007/11/09/hello-world/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 21:18:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Hosting]]></category>

		<guid isPermaLink="false">http://nextwebdesigns.com/?p=1</guid>
		<description><![CDATA[We have a Fedora 6 web server that, like most web servers, has quite a few virtual hosts.  We want our clients to keep their web server log data separate, so that if they want, they can view the server statistics for their website using awstats.  We've found the easiest way to do this is [...]]]></description>
			<content:encoded><![CDATA[<p>We have a Fedora 6 web server that, like most web servers, has quite a few virtual hosts.  We want our clients to keep their web server log data separate, so that if they want, they can view the server statistics for their website using awstats.  We've found the easiest way to do this is to enable separate log files for each virtual host.  That's all fine and dandy, but after a while, these files can get pretty large.  In order to keep them from taking up too much space, it's a good idea to use a program like logrotate to rotate out these logs for us.</p>
<p>With Fedora 6, logrotate comes installed automatically, but we could have installed it via yum as root:</p>
<pre>yum install logrotate</pre>
<p>Logrotate should have put an entry in /etc/cron.daily, and will then be run as a daily cron job automatically.  The Fedora package of logrotate will automatically rotate most of your system logs.  But, as we have some "unconventional" virtual host logs we'd also like to rotate, we'll have to set those up manually.</p>
<p>To setup the rotation of the virutal host logs, you can cd to /etc/logrotate.d.   There you should see a file for apahce's default logs called httpd.  Just copy or modify this file for each virtual host you have.  Any files in /etc/logrotate.d will be automatically read by logrotate when it runs.  That's it!</p>
]]></content:encoded>
			<wfw:commentRss>http://nextwebdesigns.com/2007/11/09/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
