 




<?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>Open Source Software and Linux &#187; https</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/linux-lotus-domino/tag/https/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino</link>
	<description></description>
	<lastBuildDate>Thu, 02 May 2013 21:07:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Create an Apache Virtual Host</title>
		<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/create-an-apache-virtual-host/</link>
		<comments>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/create-an-apache-virtual-host/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 01:00:28 +0000</pubDate>
		<dc:creator>Xjlittle</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[dav]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[virtual host]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[webdav]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/linux-lotus-domino/create-an-apache-virtual-host/</guid>
		<description><![CDATA[Creating Apache virtual hosts allow you to use a single IP address for many web servers. I use mine for general web serving as well as secure WebDav over HTTPS. The Apache web server is arguably the most popular web server on the internet and has been since 1996. Ok let&#8217;s get started setting up [...]]]></description>
				<content:encoded><![CDATA[<p>Creating <a href="http://www.apache.org/">Apache</a> virtual hosts allow you to use a single IP address for many web servers.  I use mine for general web serving as well as secure WebDav over HTTPS.  The Apache web server is arguably the most popular web server on the internet and <a href="http://httpd.apache.org/">has been since 1996</a>.</p>
<p>Ok let&#8217;s get started setting up your Apache virtual host.  I am using Centos 5.x for our operating system.  The apache server is the stock install using YUM.</p>
<p>Edit the /etc/httpd/conf/httpd.conf file.  The virtual hosts section is towards the bottom.<br />
Uncomment the NameVirtualHost *:80 directive  If you want virtual hosts accessed over SSL you will need to add the NameVirtualHost *:443 directive as well.</p>
<p>For virtual hosts over SSL the virtual host containers should be added to the /etc/httpd/conf.d/ssl.conf file.</p>
<p>Almost any Apache directive may go into a VirtualHost container.  Following is a sample virtual host container.  Use the auth directives if you want authentication for your host.  The users are set up with the htpasswd command.  See man htpasswd for more info.</p>
<p>When apache receives a web site request on the IP address it looks to the configuration files<br />
to determine if it has the host.  If it has the host it then looks to the DocumentRoot of the host to determine what pages and directories are available and serves them to the client.</p>
<p>    ServerAdmin webmaster@www.luvlinux.net #email address on error pages<br />
    DocumentRoot /var/www/vhosts/luvlinux  #where apache looks for web site documents<br />
    ServerName www.luvlinux.net		   #dns name of server (Web site host name)<br />
    ErrorLog logs/www.luvlinux.net-error_log		#logs are located relative to serverroot<br />
    CustomLog logs/www.luvlinux.net-access_log common<br />
        		#put options in here<br />
        Options Indexes Multiviews			#shows an index of files if no index.html<br />
#       AuthType Basic					#authentication type<br />
#       AuthName &#8220;My this site&#8221;				#name that shows on login dialogue<br />
#       AuthUserFile /etc/httpd/webpass			#name of the password file<br />
#       Require user engineer1				#name of authorized user(s)</p>
<p>    ServerAdmin webmaster@www.example.net<br />
    DocumentRoot /var/www/vhosts/example.net<br />
    ServerName www.example.net<br />
    ErrorLog logs/www.example.net-error_log<br />
    CustomLog logs/www.example.net-access_log common</p>
<p>        Options Indexes Multiviews</p>
<p>Use the following command to check your virtual host configuration:<br />
httpd -D DUMP_VHOSTS</p>
<p>You will get output similar to the following indicating that everything is ok.</p>
<p>VirtualHost configuration:<br />
wildcard NameVirtualHosts and _default_ servers:<br />
*:443                  myhost.example.com (/etc/httpd/conf.d/ssl.conf:82)<br />
*:80                   is a NameVirtualHost<br />
         default server www.example.net (/etc/httpd/conf/httpd.conf:993)<br />
         port 80 namevhost www.example.net (/etc/httpd/conf/httpd.conf:993)<br />
Syntax OK</p>
<p>Use the following to check the general syntax of your configuration files:<br />
httpd -t<br />
Syntax OK</p>
<p>Congratulations!  You should now have your Virtual Host setup.  Don&#8217;t forget to make your hosts and/or DNS entries for accessing your web server.  Enjoy!</p>
<p>-j</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/create-an-apache-virtual-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Squid proxy server quick start</title>
		<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/squid-proxy-server-quick-start/</link>
		<comments>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/squid-proxy-server-quick-start/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 08:05:31 +0000</pubDate>
		<dc:creator>Xjlittle</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[proxy cache]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[squid.conf]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[web proxy]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/linux-lotus-domino/squid-proxy-server-quick-start/</guid>
		<description><![CDATA[Here is a quick start plan for installing the squid-cache.org proxy server. Squid is a caching proxy server that uses HTTP, HTTPS and FTP for caching web pages from the internet. By caching web pages locally the squid server helps you save on bandwidth and increases page response time for web surfing. When you first [...]]]></description>
				<content:encoded><![CDATA[<p>Here is a quick start plan for installing the <a href="http://www.squid-cache.org/">squid-cache.org</a> proxy server.  Squid is a caching proxy server that uses HTTP, HTTPS and FTP for caching web pages from the internet.  By caching web pages locally the squid server helps you save on bandwidth and increases page response time for web surfing.</p>
<p>When you first open the squid configuration file it can be overwhelming with over 4000 lines.  Many of these are comments but there are still hundreds of configuration choices.  I am going to reduce these down to a solid foundation which will get you up and running quickly.  This will give you some time to study the other configuration choices that may be necessary for your use.  For most people some form of the configuration entries that we use here will be enough to control and proxy your web access.</p>
<p>Squid can be installed on Linux, Unix or Windows.  For our purposes here we are installing on <a href="http://centos.org">Centos 5.x</a>.</p>
<p>Let&#8217;s get started:</p>
<p>Install the Squid package<br />
<code>	yum install squid</code></p>
<p>cd to the configuration directory<br />
<code>	cd /etc/squid</code></p>
<p>The default squid config file contains over 4000 lines.  Remove the comments so that the file<br />
is a workable size<br />
Copy the squid.conf file to dist.conf.squid to preserve the comments for reference<br />
<code>	cp squid.conf dist.squid.conf</code><br />
The following sed command edits the squid.conf file in place removing comments and empty lines<br />
<code>	sed -i.tmp '/^#/d; /^$/d' squid.conf</code><br />
This will produce a file that contains the following entries:</p>
<p><code><br />
http_port 3128<br />
hierarchy_stoplist cgi-bin ?<br />
acl QUERY urlpath_regex cgi-bin \?<br />
cache deny QUERY<br />
acl apache rep_header Server ^Apache<br />
broken_vary_encoding allow apache<br />
access_log /var/log/squid/access.log squid<br />
refresh_pattern ^ftp:           1440    20%     10080<br />
refresh_pattern ^gopher:        1440    0%      1440<br />
refresh_pattern .               0       20%     4320<br />
acl all src 0.0.0.0/0.0.0.0<br />
acl manager proto cache_object<br />
acl localhost src 127.0.0.1/255.255.255.255<br />
acl to_localhost dst 127.0.0.0/8<br />
acl SSL_ports port 443<br />
acl Safe_ports port 80          # http<br />
acl Safe_ports port 21          # ftp<br />
acl Safe_ports port 443         # https<br />
acl Safe_ports port 70          # gopher<br />
acl Safe_ports port 210         # wais<br />
acl Safe_ports port 1025-65535  # unregistered ports<br />
acl Safe_ports port 280         # http-mgmt<br />
acl Safe_ports port 488         # gss-http<br />
acl Safe_ports port 591         # filemaker<br />
acl Safe_ports port 777         # multiling http<br />
acl CONNECT method CONNECT<br />
http_access allow manager localhost<br />
http_access deny manager<br />
http_access deny !Safe_ports<br />
http_access deny CONNECT !SSL_ports<br />
http_access allow localhost<br />
http_access deny all<br />
http_reply_access allow all<br />
icp_access allow all<br />
coredump_dir /var/spool/squid<br />
</code></p>
<p>After doing this you will need to add some lines to the squid file for your environment<br />
<code><br />
        vim squid.conf<br />
	visible_hostname<br />
	acl our_networks src / /<br />
				as in 192.168.1.0/24 192.168.2.0/24<br />
	http_access our_networks<br />
</code><br />
Save your changes and exit the squid.conf file.</p>
<p>Create the squid cache directories in /var/spool/squid<br />
<code>	quid -z</code></p>
<p>Set squid to start on reboot<br />
<code>	chkconfig squid on</code></p>
<p>Start squid<br />
<code>	service squid start</code></p>
<p>This should work out of the box after pointing the clients to the correct proxy server and port.</p>
<p>Additional configuration directives can be issued through the /etc/sysconfig/squid file and the /etc/init.d/squid script.</p>
<p>I hope this helps you get squid up and running quickly.  Enjoy!</p>
<p>-j</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/squid-proxy-server-quick-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
