<?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>Apache Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/apache/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 21 Feb 2026 07:13:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Apache Kafka Mastery: A Definitive Guide to Distributed Streaming Architecture and Real-Time Data Processing</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-kafka-mastery-a-definitive-guide-to-distributed-streaming-architecture-and-real-time-data-processing/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-kafka-mastery-a-definitive-guide-to-distributed-streaming-architecture-and-real-time-data-processing/#respond</comments>
		
		<dc:creator><![CDATA[Vijay K]]></dc:creator>
		<pubDate>Sat, 31 May 2025 18:02:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Codecs]]></category>
		<category><![CDATA[DigitalApache]]></category>
		<category><![CDATA[KafkaCompression]]></category>
		<category><![CDATA[KafkaStreaming]]></category>
		<category><![CDATA[KafkaTechnology]]></category>
		<category><![CDATA[Multimedia]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=12509</guid>

					<description><![CDATA[<p>1. What is Apache Kafka? Apache Kafka is a high-throughput, fault-tolerant, distributed event streaming platform originally developed by LinkedIn and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-kafka-mastery-a-definitive-guide-to-distributed-streaming-architecture-and-real-time-data-processing/">Apache Kafka Mastery: A Definitive Guide to Distributed Streaming Architecture and Real-Time Data Processing</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" width="681" height="332" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-13.png" alt="" class="wp-image-12515" style="width:837px;height:auto" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-13.png 681w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-13-300x146.png 300w" sizes="(max-width: 681px) 100vw, 681px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">1. What is Apache Kafka?</h2>



<p class="wp-block-paragraph">Apache Kafka is a high-throughput, fault-tolerant, distributed event streaming platform originally developed by LinkedIn and donated to the Apache Software Foundation. It functions primarily as a distributed publish-subscribe messaging system, designed for processing large volumes of real-time data feeds efficiently.</p>



<p class="wp-block-paragraph">Kafka enables systems to publish streams of records (events or messages) into <strong>topics</strong> and allows multiple consumers to subscribe and process these streams independently. The design emphasizes scalability, durability, and fault tolerance, making it ideal for real-time data pipelines, event-driven architectures, and stream processing applications.</p>



<p class="wp-block-paragraph">Kafka’s unique blend of a distributed commit log, partitioned topics, and consumer groups allows it to process millions of messages per second while ensuring data consistency and reliability across clusters of commodity servers.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">2. Major Use Cases of Apache Kafka</h2>



<h3 class="wp-block-heading">2.1 Real-Time Event Streaming and Data Pipelines</h3>



<p class="wp-block-paragraph">Kafka is the backbone of many organizations&#8217; data infrastructure, moving data between applications, databases, and analytic systems in real time. It can ingest vast streams of data from various sources (websites, sensors, logs) and feed them into processing frameworks or storage systems.</p>



<h3 class="wp-block-heading">2.2 Event-Driven Microservices</h3>



<p class="wp-block-paragraph">In modern microservices architectures, Kafka enables services to communicate asynchronously through events rather than direct API calls. This decouples components, improves scalability, and allows replayability of event streams.</p>



<h3 class="wp-block-heading">2.3 Log Aggregation and Monitoring</h3>



<p class="wp-block-paragraph">Kafka aggregates logs from distributed applications and infrastructure, centralizing them for real-time monitoring, alerting, and troubleshooting. Tools like the ELK stack often consume Kafka streams for log analysis.</p>



<h3 class="wp-block-heading">2.4 Stream Processing and Complex Event Processing (CEP)</h3>



<p class="wp-block-paragraph">With Kafka Streams, Apache Flink, and other stream processors, users can perform real-time analytics, detect anomalies, enrich data streams, and react to events with low latency.</p>



<h3 class="wp-block-heading">2.5 Messaging System Replacement</h3>



<p class="wp-block-paragraph">Kafka can replace traditional message brokers like RabbitMQ or ActiveMQ when applications require high throughput, scalability, and persistence guarantees.</p>



<h3 class="wp-block-heading">2.6 Website Activity Tracking</h3>



<p class="wp-block-paragraph">Capturing clickstreams, page views, and user behavior data allows businesses to personalize content, perform real-time analytics, and drive marketing strategies.</p>



<h3 class="wp-block-heading">2.7 IoT Data Integration</h3>



<p class="wp-block-paragraph">Kafka efficiently handles the massive data influx from IoT devices, enabling real-time processing, filtering, and forwarding to analytics or alerting systems.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">3. How Apache Kafka Works Along with Architecture</h2>



<figure class="wp-block-image size-full is-resized"><img decoding="async" width="500" height="300" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-14.png" alt="" class="wp-image-12516" style="width:840px;height:auto" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-14.png 500w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2025/06/image-14-300x180.png 300w" sizes="(max-width: 500px) 100vw, 500px" /></figure>



<h3 class="wp-block-heading">3.1 Core Components</h3>



<ul class="wp-block-list">
<li><strong>Producer:</strong> Client applications that send (publish) data to Kafka topics.</li>



<li><strong>Consumer:</strong> Applications that read (subscribe to) topic data.</li>



<li><strong>Broker:</strong> Kafka server nodes that store data and handle client requests.</li>



<li><strong>Topic:</strong> A named stream of records, split into partitions for parallelism.</li>



<li><strong>Partition:</strong> A sub-log of a topic; the unit of parallelism and storage.</li>



<li><strong>Consumer Group:</strong> A group of consumers that jointly consume topic partitions, enabling scalability and fault tolerance.</li>



<li><strong>ZooKeeper (Legacy):</strong> Manages cluster metadata, broker coordination, and leader election (Kafka is evolving to a ZooKeeper-less mode).</li>
</ul>



<h3 class="wp-block-heading">3.2 Data Storage and Replication</h3>



<p class="wp-block-paragraph">Kafka stores data in an append-only, immutable log per partition. Data is durably stored on disk and replicated across brokers according to configured replication factors. This ensures durability and availability even when brokers fail.</p>



<h3 class="wp-block-heading">3.3 Message Ordering and Delivery Semantics</h3>



<p class="wp-block-paragraph">Within each partition, Kafka guarantees strict ordering of messages. Kafka supports <strong>at-least-once</strong> delivery semantics by default, and with careful design, <strong>exactly-once</strong> semantics can be achieved.</p>



<h3 class="wp-block-heading">3.4 Scalability and Fault Tolerance</h3>



<p class="wp-block-paragraph">Partitions allow Kafka to distribute data and workload across multiple brokers, scaling horizontally. Replication protects against broker failures, with automatic failover to replica leaders ensuring continuity.</p>



<h3 class="wp-block-heading">3.5 Client APIs and Ecosystem</h3>



<p class="wp-block-paragraph">Kafka offers multiple client APIs (Java, Python, Go, .NET, etc.) for producers and consumers. It also integrates with Kafka Streams for stream processing, Kafka Connect for data integration, and many third-party tools and frameworks.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">4. Basic Workflow of Apache Kafka</h2>



<ol class="wp-block-list">
<li><strong>Topic Creation:</strong> Define topics with appropriate partition and replication settings.</li>



<li><strong>Producing Data:</strong> Producers write messages to topic partitions asynchronously.</li>



<li><strong>Data Storage:</strong> Brokers append messages to partition logs, replicating data to replicas.</li>



<li><strong>Consuming Data:</strong> Consumers in groups read from partitions, committing offsets.</li>



<li><strong>Processing Data:</strong> Stream processing apps consume, transform, and produce events downstream.</li>



<li><strong>Scaling:</strong> Add brokers and partitions to distribute load.</li>



<li><strong>Monitoring:</strong> Use tools to track lag, throughput, and broker health.</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">5. Step-by-Step Getting Started Guide for Apache Kafka</h2>



<h3 class="wp-block-heading">Step 1: Install Prerequisites</h3>



<ul class="wp-block-list">
<li>Java 8 or higher (Kafka runs on JVM).</li>



<li>Download Kafka binaries from <a href="https://kafka.apache.org/downloads">kafka.apache.org</a>.</li>
</ul>



<h3 class="wp-block-heading">Step 2: Start ZooKeeper</h3>



<p class="wp-block-paragraph">Kafka relies on ZooKeeper (except for newer KRaft mode) to manage cluster state:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
bin/zookeeper-server-start.sh config/zookeeper.properties

</pre></div>


<h3 class="wp-block-heading">Step 3: Start Kafka Broker</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
bin/kafka-server-start.sh config/server.properties

</pre></div>


<h3 class="wp-block-heading">Step 4: Create Topics</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
bin/kafka-topics.sh --create --topic my-topic --bootstrap-server localhost:9092 --partitions 3 --replication-factor 1

</pre></div>


<h3 class="wp-block-heading">Step 5: Produce Messages</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
bin/kafka-console-producer.sh --topic my-topic --bootstrap-server localhost:9092

</pre></div>


<p class="wp-block-paragraph">Type your messages and press enter to send.</p>



<h3 class="wp-block-heading">Step 6: Consume Messages</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
bin/kafka-console-consumer.sh --topic my-topic --from-beginning --bootstrap-server localhost:9092

</pre></div>


<h3 class="wp-block-heading">Step 7: Develop Custom Producers and Consumers</h3>



<p class="wp-block-paragraph">Use client libraries (e.g., Java Kafka Client) to programmatically produce and consume messages.</p>



<h3 class="wp-block-heading">Step 8: Monitor and Maintain</h3>



<p class="wp-block-paragraph">Deploy monitoring solutions like Prometheus, Grafana, or Confluent Control Center. Scale your cluster by adding brokers or partitions.</p>



<hr class="wp-block-separator has-alpha-channel-opacity">



<h2 class="wp-block-heading">6. Best Practices and Advanced Concepts</h2>



<ul class="wp-block-list">
<li><strong>Partitioning Strategy:</strong> Use keys wisely to ensure even load distribution.</li>



<li><strong>Idempotent Producers:</strong> Avoid duplicate messages during retries.</li>



<li><strong>Consumer Offset Management:</strong> Commit offsets carefully to maintain processing guarantees.</li>



<li><strong>Exactly-Once Processing:</strong> Leverage Kafka transactions with Kafka Streams.</li>



<li><strong>Security:</strong> Enable TLS, SASL authentication, and ACLs to protect data.</li>



<li><strong>Schema Management:</strong> Use schema registries for data compatibility.</li>



<li><strong>Monitoring:</strong> Track consumer lag, throughput, and resource usage.</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-kafka-mastery-a-definitive-guide-to-distributed-streaming-architecture-and-real-time-data-processing/">Apache Kafka Mastery: A Definitive Guide to Distributed Streaming Architecture and Real-Time Data Processing</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-kafka-mastery-a-definitive-guide-to-distributed-streaming-architecture-and-real-time-data-processing/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Secure Your Apache Server</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/#respond</comments>
		
		<dc:creator><![CDATA[Amardeep Dubey]]></dc:creator>
		<pubDate>Fri, 10 Sep 2021 06:35:20 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8917</guid>

					<description><![CDATA[<p>1.Enable automatic updates Given that the LAMP stack is based on Linux and that the entire open-source community is working [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/">How to Secure Your Apache Server</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">1.Enable automatic updates</h2>



<p class="wp-block-paragraph">Given that the LAMP stack is based on Linux and that the entire open-source community is working to enhance it, it is also deemed secure. All security updates and patches are accessible as an automatic unattended install on an Ubuntu VPS as soon as they are released in the Ubuntu repos, so make sure you configure your system to automatically install them if you are concerned about security.If you don&#8217;t enable this option on your server and don&#8217;t manually install the latest upgrades and patches, you&#8217;re placing your server at risk of being hacked.</p>



<p class="wp-block-paragraph">Install the unattended-upgrades package to enable automatic unattended upgrades.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo apt-get install unattended-upgrades
</pre></div>


<p class="wp-block-paragraph">Edit the <strong>/etc/apt/apt.conf.d/50unattended-upgrades</strong> file to specify which package categories should be upgraded automatically.</p>



<h2 class="wp-block-heading">2. Configure firewall</h2>



<p class="wp-block-paragraph">Another very important aspect of overall security is having a properly set firewall. ufw is Ubuntu&#8217;s default firewall configuration tool, and it&#8217;s turned off by default. You can use the following commands to enable ufw:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo ufw enable
</pre></div>


<p class="wp-block-paragraph">Allow essential services like OpenSSH and Apache to be accessed:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo ufw allow 22
sudo ufw allow 80
sudo ufw allow 443
</pre></div>


<p class="wp-block-paragraph">It&#8217;s simple to grant access to other services. Simply change the port number in the samples above to the port number of the service you wish to enable access to, and you&#8217;re done. Even if the machine is rebooted, the firewall rules will remain active.</p>



<h2 class="wp-block-heading">3. Disable unused services</h2>



<p class="wp-block-paragraph">If you have active services which you are not using, you can simply disable them. For example, if you have service like Dovecot up and running on your server and you are not using it at all, stop and disable the service using the following commands:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl stop dovecot.service
sudo systemctl disable dovecot.service
</pre></div>


<h2 class="wp-block-heading">4. Install Fail2ban</h2>



<p class="wp-block-paragraph">Fail2ban is a service that scans log files for excessive login failures and blocks the IP address that is displaying malicious behaviour. If you don&#8217;t use two-factor or public/private authentication techniques on services like OpenSSH, this service comes in handy. Run the following command to install Fail2ban:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo apt-get install fail2ban
</pre></div>


<p class="wp-block-paragraph">Make a copy of the default configuration file so you can make modifications without worrying about system updates overwriting them:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

</pre></div>


<p class="wp-block-paragraph">Edit the <strong><em>jail.local</em> </strong>file:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo nano /etc/fail2ban/jail.local
</pre></div>


<p class="wp-block-paragraph">The <strong>[sshd]</strong> block should look something like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&#x5B;sshd]

enabled  = true
port     = ssh
filter   = sshd
logpath  = /var/log/auth.log
maxretry = 5
bantime = 600
</pre></div>


<p class="wp-block-paragraph">To make the modifications take effect, save the file and restart <strong>Fail2ban:</strong></p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl restart fail2ban.service
</pre></div>


<p class="wp-block-paragraph">Enable <strong>Fail2ban</strong> on system boot:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl enable fail2ban.service
</pre></div>


<h2 class="wp-block-heading">5. Hide Apache sensitive information</h2>



<p class="wp-block-paragraph">The default Apache setup exposes a great deal of sensitive data that can be used against the service. It&#8217;s critical to keep this information secret, therefore make a configuration file for your new settings:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo nano /etc/apache2/conf-available/custom.conf
</pre></div>


<p class="wp-block-paragraph">Copy and paste the following text:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
ServerTokens Prod
ServerSignature Off
TraceEnable Off
Options all -Indexes
Header unset ETag
Header always unset X-Powered-By
FileETag None
</pre></div>


<p class="wp-block-paragraph">If it isn&#8217;t already enabled, enable the Apache headers module:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo a2enmod headers
</pre></div>


<p class="wp-block-paragraph">Enable the following settings:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo a2enconf custom.conf
</pre></div>


<p class="wp-block-paragraph">To make the modifications take effect, restart Apache:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl restart apache2.service
</pre></div>


<h2 class="wp-block-heading">6. Install and enable mod_security</h2>



<p class="wp-block-paragraph">Mod security is a web application firewall (WAF) that may be added to Apache as a separate module. It can be used to protect a web server from a variety of threats, including SQL injections, session hijacking, cross-site scripting, and malicious user agents. Run the instructions following to install and enable mod security:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo apt-get install libapache2-modsecurity2
sudo a2enmod security2
</pre></div>


<p class="wp-block-paragraph">You should setup the module and enable the OWASP ModSecurity Core Rule Set after it has been installed (CRS).</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo mv /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
</pre></div>


<p class="wp-block-paragraph">Then, open the <strong>/etc/modsecurity/modsecurity.conf</strong> file and edit/add the following settings:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
SecRuleEngine On
SecResponseBodyAccess Off
SecRequestBodyLimit 8388608
SecRequestBodyNoFilesLimit 131072
SecRequestBodyInMemoryLimit 262144
</pre></div>


<p class="wp-block-paragraph">Save and close the file. Remove the current CRS and download the OWASP CRS by using the following commands:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo rm -rf /usr/share/modsecurity-crs
sudo git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git /usr/share/modsecurity-crs
cd /usr/share/modsecurity-crs
sudo mv crs-setup.conf.example crs-setup.conf
</pre></div>


<p class="wp-block-paragraph">Edit the<strong> security2.conf</strong> file in <strong>/etc/apache2/mods-enabled/security2.conf.</strong> It should resemble the following:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;IfModule security2_module&gt;
	SecDataDir /var/cache/modsecurity
	IncludeOptional /etc/modsecurity/*.conf
	IncludeOptional &quot;/usr/share/modsecurity-crs/*.conf&quot;
	IncludeOptional &quot;/usr/share/modsecurity-crs/rules/*.conf
&amp;lt;/IfModule&gt;
</pre></div>


<p class="wp-block-paragraph">Finally, to make the modifications take effect, restart Apache:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl restart apache2.service
</pre></div>


<h2 class="wp-block-heading">7. Install and enable mod_evasive</h2>



<p class="wp-block-paragraph">Mod evasive is an Apache module that can prevent DoS (Denial of Service), DDoS (Distributed Denial of Service), and brute-force assaults on the web server. Run the following command to install mod evasive on your server:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo apt-get install libapache2-mod-evasive
</pre></div>


<p class="wp-block-paragraph">Open the default configuration file <em><strong>/etc/apache2/mods-enabled/evasive.conf</strong></em> and edit the settings to look like those below:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
&amp;lt;IfModule mod_evasive20.c&gt;
	DOSPageCount        5
	DOSSiteCount        50
	DOSPageInterval     1
	DOSSiteInterval     1
	DOSBlockingPeriod   600
	DOSLogDir           &quot;/var/log/mod_evasive&quot;
&amp;lt;/IfModule&gt;
</pre></div>


<p class="wp-block-paragraph">The file should be saved and closed. Make a folder for the log files:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo mkdir /var/log/mod_evasive
sudo chown -R www-data: /var/log/mod_evasive
</pre></div>


<p class="wp-block-paragraph">Restart Apache:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo systemctl restart apache2.service
</pre></div>


<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/">How to Secure Your Apache Server</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-secure-your-apache-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Not Found The requested URL was not found on this server.</title>
		<link>https://www.scmgalaxy.com/tutorials/not-found-the-requested-url-was-not-found-on-this-server/</link>
					<comments>https://www.scmgalaxy.com/tutorials/not-found-the-requested-url-was-not-found-on-this-server/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 10 Jun 2021 11:53:34 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[port80]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6470</guid>

					<description><![CDATA[<p>Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.2.34 Server at ds-student-ms Port 80 In this tutorial I&#8217;m going to describe how to solve this [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/not-found-the-requested-url-was-not-found-on-this-server/">Not Found The requested URL was not found on this server.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" id="13a5"><em>Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.2.34 Server at ds-student-ms Port 80</em></p>



<p class="wp-block-paragraph" id="b6c9">In this tutorial I&#8217;m going to describe how to solve this error</p>



<p class="wp-block-paragraph" id="6ed6">Not Found The requested URL was not found on this server&nbsp;<em>Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.2.34 Server at ds-student-ms Port 80.</em></p>



<p class="wp-block-paragraph" id="86a5"><em>I got a error when i created virtual host and when i Open in browser its showing Not found the requested url.</em></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/2682/1*DNbxVEODCYrNn8WiA02lYw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="42e1">I tried lots of then i got what’s the error on my project Simply go to your project directory</p>



<pre class="wp-block-preformatted">C:\xampp\htdocs\ds-student-ms\public\.htaccess</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*87erdgqaLkycOlY7Jbz50g.png" alt=""/></figure>



<p class="wp-block-paragraph" id="39e0">Simply open this file in editor and paste below code.</p>



<pre class="wp-block-preformatted">&lt;IfModule mod_rewrite.c&gt;<br>    &lt;IfModule mod_negotiation.c&gt;<br>        Options -MultiViews -Indexes<br>    &lt;/IfModule&gt;<br><br>    RewriteEngine On<br><br>    # Handle Authorization Header<br>    RewriteCond %{HTTP:Authorization} .<br>    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]<br><br>    # Redirect Trailing Slashes If Not A Folder...<br>    RewriteCond %{REQUEST_FILENAME} !-d<br>    RewriteCond %{REQUEST_URI} (.+)/$<br>    RewriteRule ^ %1 [L,R=301]<br><br>    # Handle Front Controller...<br>    RewriteCond %{REQUEST_FILENAME} !-d<br>    RewriteCond %{REQUEST_FILENAME} !-f<br>    RewriteRule ^ index.php [L]<br>&lt;/IfModule&gt;</pre>



<p class="wp-block-paragraph" id="c873">Now refresh your browser and you can see its open correctly</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1347/1*oDgLeU_DSDbZiuphdDjU7w.png" alt=""/></figure>



<p class="wp-block-paragraph" id="436d">Thanks its helpful for you.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/not-found-the-requested-url-was-not-found-on-this-server/">Not Found The requested URL was not found on this server.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/not-found-the-requested-url-was-not-found-on-this-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php on line 199</title>
		<link>https://www.scmgalaxy.com/tutorials/fatal-error-maximum-execution-time-of-300-seconds-exceeded-in-cxamppphpmyadminlibrariesclassesdbidbimysqli-php-on-line-199/</link>
					<comments>https://www.scmgalaxy.com/tutorials/fatal-error-maximum-execution-time-of-300-seconds-exceeded-in-cxamppphpmyadminlibrariesclassesdbidbimysqli-php-on-line-199/#comments</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Mon, 03 May 2021 04:31:15 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=6073</guid>

					<description><![CDATA[<p>Whenever you import file in in database then after some processing time its show you have using Maximum execution time [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/fatal-error-maximum-execution-time-of-300-seconds-exceeded-in-cxamppphpmyadminlibrariesclassesdbidbimysqli-php-on-line-199/">Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php on line 199</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" id="5a7f">Whenever you import file in in database then after some processing time its show you have using Maximum execution time of 300 seconds exceeded will be showing this type of error in your database:</p>



<p class="wp-block-paragraph">First of all stop your Xampp</p>



<figure class="wp-block-image size-large"><img decoding="async" width="797" height="543" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/xampp-stop.png" alt="" class="wp-image-6077" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/xampp-stop.png 797w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/xampp-stop-300x204.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/xampp-stop-768x523.png 768w" sizes="(max-width: 797px) 100vw, 797px" /></figure>



<p class="wp-block-paragraph" id="90b7">Next  step : go to config.default.php</p>



<p class="wp-block-paragraph" id="820e">Once that’s done get back to finding phpMyadmin config file named something like “config.default.php”. On XAMPP you will find it under “C:\xampp\phpMyAdmin\libraries” folder. Open the file called</p>



<p class="wp-block-paragraph" id="b383"><code><strong>config.default.php</strong></code><strong>&nbsp;and set :</strong></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*cgwc-Lzkkjxjnib85Tfmjw.png" alt=""/></figure>



<pre class="wp-block-preformatted">$cfg['ExecTimeLimit'] = 0;</pre>



<p class="wp-block-paragraph" id="1637">Simply paste here..</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*GFUN0eRBgu58KlMkfTEkbA.png" alt=""/></figure>



<p class="wp-block-paragraph" id="33ad">Once set, restart your MySQL and Apache and go import your database.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1345/1*ISK4o75Qo-VytUUTMlHTHg.png" alt=""/></figure>



<p class="wp-block-paragraph" id="109a"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/fatal-error-maximum-execution-time-of-300-seconds-exceeded-in-cxamppphpmyadminlibrariesclassesdbidbimysqli-php-on-line-199/">Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php on line 199</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/fatal-error-maximum-execution-time-of-300-seconds-exceeded-in-cxamppphpmyadminlibrariesclassesdbidbimysqli-php-on-line-199/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create Virtual Host in Laravel</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-create-virtual-host-in-laravel/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-create-virtual-host-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Thu, 22 Apr 2021 04:57:41 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[virtualhost]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=5949</guid>

					<description><![CDATA[<p>In this tutorial I&#8217;m going to create multiple virtual host in laravel in some easy steps please follow mentioned below. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-virtual-host-in-laravel/">How to Create Virtual Host in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" id="7089">In this tutorial I&#8217;m going to create multiple virtual host in laravel in some easy steps please follow mentioned below.</p>



<p class="wp-block-paragraph" id="62e9">first stop your xampp <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f447.png" alt="👇" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/2720/1*camhH70j6H3HXkQRKo6RZw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="dd33">1step-&gt; Go to</p>



<p class="wp-block-paragraph" id="34a3">C:\xampp\htdocs</p>



<p class="wp-block-paragraph" id="8e04">ds-admin-ms is your project folder name</p>



<pre class="wp-block-preformatted">ds-admin-ms</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1008/1*s6fKDvbI7h7k0n2jIln7yw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="e456">2nd step go to</p>



<p class="wp-block-paragraph" id="0b09">C:\xampp\apache\conf\extra</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1028/1*f7jzBBiR2zor55Xg9byMUA.png" alt=""/></figure>



<p class="wp-block-paragraph" id="efc7">3rd step Open this file -&gt; httpd-vhosts.conf</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1210/1*E-6Alz0E9VROnEXxiOYgLg.png" alt=""/></figure>



<p class="wp-block-paragraph" id="9305">4th step Copy below code <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f447.png" alt="👇" class="wp-smiley" style="height: 1em; max-height: 1em;" /><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f447.png" alt="👇" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<pre class="wp-block-preformatted">&lt;VirtualHost *:80&gt;<br>	DocumentRoot "C:\xampp\htdocs\ds-admin-ms\public"<br>	ServerName ds-admin-ms<br>	ServerAlias ds-admin-ms<br>	&lt;Directory "c:/xampp/htdocs/ds-admin-ms/public"&gt;<br>	Order allow,deny<br>	Allow from all<br>	&lt;/Directory&gt;<br>&lt;/VirtualHost&gt;</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*RmVtKv9vuknDW4KspI5-Tg.png" alt=""/></figure>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*onCmom3WKY1rXpf86_Oorg.png" alt=""/></figure>



<p class="wp-block-paragraph" id="67e4">Next step go to</p>



<p class="wp-block-paragraph" id="2a06">C:\Windows\System32\drivers\etc</p>



<p class="wp-block-paragraph" id="9b34">Open this file -&gt; hosts</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1118/1*rVHXIV_EuMuZ-7PJbiXJSQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="816e">Simply copy below code <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f447.png" alt="👇" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<pre class="wp-block-preformatted">127.0.0.1 		ds-admin-ms<br>::1</pre>



<p class="wp-block-paragraph" id="bdb7">Paste here in C:\Windows\System32\drivers\etc and open this file <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f449.png" alt="👉" class="wp-smiley" style="height: 1em; max-height: 1em;" /> hosts</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1366/1*hezfZM4WRk7wQpuuDt9ppA.png" alt=""/></figure>



<p class="wp-block-paragraph" id="45d1">Lets go to xampp and start run</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/2720/1*jmSBxmett4_shyDvOe_T1g.png" alt=""/></figure>



<p class="wp-block-paragraph" id="9291">and go to folder -&gt; C:\xampp\htdocs\ds-admin-ms</p>



<p class="wp-block-paragraph" id="6ab5">and open terminal and run</p>



<pre class="wp-block-preformatted">php artisan serve</pre>



<p class="wp-block-paragraph" id="0df8">Next&nbsp;go to browser and paste this</p>



<pre class="wp-block-preformatted">http://ds-admin-ms/</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/2720/1*cTwgWXvwzs9l92IGQt8KwQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="4fae"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-virtual-host-in-laravel/">How to Create Virtual Host in Laravel</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-create-virtual-host-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apaceh HTACCESS Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/apaceh-htaccess-tutorial/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apaceh-htaccess-tutorial/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 07:26:27 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache HTACCESS Guide]]></category>
		<category><![CDATA[Apache HTACCESS Tutorial]]></category>
		<category><![CDATA[HTACCESS]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4592</guid>

					<description><![CDATA[<p>Introduction What Can I Do? Creating A .htaccess File What is .htaccess Why Not to use .htaccess Error Documents &#124; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apaceh-htaccess-tutorial/">Apaceh HTACCESS Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Introduction">Introduction</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#WhatCanIDo">What Can I Do?</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#CreatingAhtaccessFile">Creating A .htaccess File</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Whatishtaccess">What is .htaccess</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#WhyNottousehtaccess">Why Not to use .htaccess</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#ErrorDocumentsCustomErrorPages">Error Documents | Custom Error Pages</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#BlockingusersbyIP">Blocking users by IP</a><br />
<a href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Blockinguserssitesbyreferrer">Blocking users/ sites by referrer</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Blocktrafficfromasinglereferrer">Block traffic from a single referrer</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Blocktrafficfrommultiplereferrers">Block traffic from multiple referrers</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Blockingbadbotsandsiterippersakaofflinebrowsers">Blocking bad bots and site rippers</a><br />
<a href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Changeyourdefaultdirectorypage">Change your default directory page</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Redirects">Redirects</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Preventviewingofhtaccessfile">Prevent viewing of .htaccess file</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#AddingMIMETypes">Adding MIME Types</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Preventinghotlinkingofimagesandotherfiletypes">Preventing hot linking of images and other file types</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#PreventingDirectoryListing">Preventing Directory Listing</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Savebandwidthwithhtaccess">Save bandwidth with .htaccess!</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Disabledirectorylistings">Disable directory listings</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Hotlinkpreventiontechniques">Hot link prevention techniques</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Protectingyourimagesandzipfilesfromlinking">Protecting your images and (zip) files from linking</a><br />
<a title="HTACCESS tutorial, cmsgalaxy.com,Joomla" href="http://community.scmgalaxy.com/blog/view/19419/apaceh-htaccess-tutorial#Reference">Reference</a></p>
<p>&nbsp;</p>
<p><strong><a id="Introduction" name="Introduction"></a>Introduction</strong></p>
<p>In this tutorial you will find out about the .htaccess file and the power it has to improve your website. Although .htaccess is only a file, it can change settings on the servers and allow you to do many different things, the most popular being able to have your own custom 404 error pages. .htaccess isn&#8217;t difficult to use and is really just made up of a few simple instructions in a text file.<br />
<strong><a id="WhatCanIDo" name="WhatCanIDo"></a>What Can I Do?</strong></p>
<p>You may be wondering what .htaccess can do, or you may have read about some of its uses but don&#8217;t realise how many things you can actually do with it.</p>
<p>There is a huge range of things .htaccess can do including: password protecting folders, redirecting users automatically, custom error pages, changing your file extensions, banning users with certian IP addresses, only allowing users with certain IP addresses, stopping directory listings and using a different file as the index file.<br />
<strong><a id="CreatingAhtaccessFile" name="CreatingAhtaccessFile"></a>Creating A .htaccess File</strong></p>
<p>Creating a .htaccess file may cause you a few problems. Writing the file is easy, you just need enter the appropriate code into a text editor (like notepad). You may run into problems with saving the file. Because .htaccess is a strange file name (the file actually has no name but a 8 letter file extension) it may not be accepted on certain systems (e.g. Windows 3.1). With most operating systems, though, all you need to do is to save the file by entering the name as:</p>
<p>&#8220;.htaccess&#8221;</p>
<p>(including the quotes). If this doesn&#8217;t work, you will need to name it something else (e.g. htaccess.txt) and then upload it to the server. Once you have uploaded the file you can then rename it using an FTP program.</p>
<p><strong>Warning</strong></p>
<p>Before beginning using .htaccess, I should give you one warning. Although using .htaccess on your server is extremely unlikely to cause you any problems (if something is wrong it simply won&#8217;t work), you should be wary if you are using the Microsoft FrontPage Extensions. The FrontPage extensions use the .htaccess file so you should not really edit it to add your own information. If you do want to (this is not recommended, but possible) you should download the .htaccess file from your server first (if it exists) and then add your code to the beginning.<strong> </strong><br />
<strong><a id="Whatishtaccess" name="Whatishtaccess"></a>What is .htaccess</strong><br />
.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn &#8216;loaded via the Apache Web Server&#8217;, then the .htaccess file is detected and executed by the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. These facilities include basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.</p>
<p>.htaccess files (or &#8220;distributed configuration files&#8221;) provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.</p>
<p>Simply put, they are invisible plain text files where one can store <strong>server directives</strong>. Server directives are anything you might put in an Apache config file (httpd.conf) or even a php.ini**, but unlike those &#8220;master&#8221; directive files, these .htaccess directives apply only to the folder in which the .htaccess file resides, <em>and all the folders inside</em>.</p>
<p>This ability to plant .htaccess files in any directory of our site allows us to set up a finely-grained tree of server directives, each subfolder inheriting properties from its parent, whilst at the same time adding to, or over-riding certain directives with its own .htaccess file. For instance, you could use .htacces to enable indexes all over your site, and then deny indexing in only certain subdirectories, <em>or</em> deny index listings site-wide, and <em>allow</em> indexing in certain subdirectories. One line in the .htaccess file in your root and your whole site is altered. From here on, I&#8217;ll probably refer to the main .htaccess in the root of your website as &#8220;the master .htaccess file&#8221;, or &#8220;main&#8221; .htaccess file.</p>
<p>There&#8217;s a small performance penalty for all this .htaccess file checking, but not noticeable, and you&#8217;ll find most of the time <em>it&#8217;s just on</em> and there&#8217;s nothing you can do about it anyway, so let&#8217;s make the most of it..</p>
<p><strong><a id="WhyNottousehtaccess" name="WhyNottousehtaccess"></a>Why Not to use .htaccess</strong><br />
There are two main reasons to avoid the use of .htaccess files.</p>
<ol>
<li>The first of these is performance. When AllowOverride is set to allow the use of .htaccess files, Apache will look in every directory for .htaccess files. Thus, permitting .htaccess files causes a performance hit, whether or not you actually even use them! Also, the .htaccess file is loaded every time a document is requested.</li>
</ol>
<p>However, putting this configuration in your server configuration file will result in less of a performance hit, as the configuration is loaded once when Apache starts, rather than every time a file is requested.</p>
<ol>
<li>The second consideration is one of security. You are permitting users to modify server configuration, which may result in changes over which you have no control. Carefully consider whether you want to give your users this privilege.</li>
</ol>
<p>htaccess files must be uploaded as ASCII mode, not BINARY. You may need to CHMOD the htaccess file to 644 or (RW-R&#8211;R&#8211;). This makes the file usable by the server, but prevents it from being read by a browser, which can seriously compromise your security.</p>
<p><strong><a id="ErrorDocumentsCustomErrorPages" name="ErrorDocumentsCustomErrorPages"></a>Error Documents |  Custom Error Pages</strong><br />
In order to specify your own ErrorDocuments, you need to be slightly familiar with the server returned error codes. (List to the right). You do not need to specify error pages for all of these, in fact you shouldn&#8217;t. An ErrorDocument for code 200 would cause an infinite loop, whenever a page was found&#8230;this would not be good.<br />
In order to specify your own customized error documents, you simply need to add the following command, on one line, within your htaccess file:</p>
<p><strong>ErrorDocument code /directory/filename.ext</strong><br />
or<br />
<strong>ErrorDocument 404 /errors/notfound.html</strong><br />
This would cause any error code resulting in 404 to be forward to <a href="http://yoursite.com/errors/notfound.html" rel="nofollow">yoursite.com/errors/notfound.html</a></p>
<p>Likewise with:<br />
<strong>ErrorDocument 500 /errors/internalerror.html</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="2" valign="top"><strong>Successful Client Requests</strong></td>
<td colspan="2" valign="top"><strong>Client Request Redirected</strong></td>
</tr>
<tr>
<td><strong>200</strong></td>
<td>OK</td>
<td>300</td>
<td>Multiple Choices</td>
</tr>
<tr>
<td><strong>201</strong></td>
<td>Created</td>
<td>301</td>
<td>Moved Permanently</td>
</tr>
<tr>
<td><strong>202</strong></td>
<td>Accepted</td>
<td>302</td>
<td>Moved Temporarily</td>
</tr>
<tr>
<td><strong>203</strong></td>
<td>Non-Authorative Information</td>
<td>303</td>
<td>See Other</td>
</tr>
<tr>
<td><strong>204</strong></td>
<td>No Content</td>
<td>304</td>
<td>Not Modified</td>
</tr>
<tr>
<td><strong>205</strong></td>
<td>Reset Content</td>
<td>305</td>
<td>Use Proxy</td>
</tr>
<tr>
<td><strong>206</strong></td>
<td>Partial Content</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td colspan="2" valign="top"><strong>Client Request Errors</strong></td>
<td colspan="2" valign="top"><strong>Server Errors</strong></td>
</tr>
<tr>
<td><strong>400</strong></td>
<td>Bad Request</td>
<td>500</td>
<td>Internal Server Error</td>
</tr>
<tr>
<td><strong>401</strong></td>
<td>Authorization Required</td>
<td>501</td>
<td>Not Implemented</td>
</tr>
<tr>
<td><strong>402</strong></td>
<td>Payment Required (not used yet)</td>
<td>502</td>
<td>Bad Gateway</td>
</tr>
<tr>
<td><strong>403</strong></td>
<td>Forbidden</td>
<td>503</td>
<td>Service Unavailable</td>
</tr>
<tr>
<td><strong>404</strong></td>
<td>Not Found</td>
<td>504</td>
<td>Gateway Timeout</td>
</tr>
<tr>
<td><strong>405</strong></td>
<td>Method Not Allowed</td>
<td>505</td>
<td>HTTP Version Not Supported</td>
</tr>
<tr>
<td><strong>406</strong></td>
<td>Not Acceptable (encoding)</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>407</strong></td>
<td>Proxy Authentication Required</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>408</strong></td>
<td>Request Timed Out</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>409</strong></td>
<td>Conflicting Request</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>410</strong></td>
<td>Gone</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>411</strong></td>
<td>Content Length Required</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>412</strong></td>
<td>Precondition Failed</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>413</strong></td>
<td>Request Entity Too Long</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>414</strong></td>
<td>Request URI Too Long</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong>415</strong></td>
<td>Unsupported Media Type</td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong> </strong></td>
<td></td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td><strong> </strong></td>
<td></td>
<td valign="top"></td>
<td valign="top"></td>
</tr>
</tbody>
</table>
<p>If you were to use an error document handler for each of the error codes I mentioned, the htaccess file would look like the following (note each command is on its own line):<br />
ErrorDocument 400 /errors/badrequest.html<br />
ErrorDocument 401 /errors/authreqd.html<br />
ErrorDocument 403 /errors/forbid.html<br />
ErrorDocument 404 /errors/notfound.html<br />
ErrorDocument 500 /errors/serverr.html<br />
You can specify a full URL rather than a virtual URL in the ErrorDocument string (<a href="http://yoursite.com/errors/notfound.html" rel="nofollow">http://yoursite.com/errors/notfound.html</a> vs. /errors/notfound.html). But this is not the preferred method by the server&#8217;s happiness standards.<br />
You can also specify HTML, believe it or not!<br />
ErrorDocument 401 &#8220;&lt;body bgcolor=#ffffff&gt;&lt;h1&gt;You have<br />
to actually &lt;b&gt;BE&lt;/b&gt; a &lt;a href=&#8221;#&#8221;&gt;member&lt;/A&gt; to view<br />
this page, Colonel!</p>
<p>The only time I use that HTML option is if I am feeling particularly saucy, since you can have so much more control over the error pages when used in conjunction with xSSI or CGI or both. Also note that the ErrorDocument starts with a &#8221; just before the HTML starts, but does not end with one&#8230;it shouldn&#8217;t end with one and if you do use that option, keep it that way. And again, that should all be on one line, no naughty word wrapping!</p>
<p><strong><a id="BlockingusersbyIP" name="BlockingusersbyIP"></a>Blocking users by IP</strong><br />
Is there a pesky person perpetrating pain upon you? Stalking your site from the vastness of the electron void? Blockem! In your htaccess file, add the following code&#8211;changing the IPs to suit your needs&#8211;each command on one line each:</p>
<p>order allow,deny<br />
deny from 123.45.6.7<br />
deny from 012.34.5.</p>
<p>allow from allYou can deny access based upon IP address or an IP block. The above blocks access to the site from 123.45.6.7, and from any sub domain under the IP block 012.34.5. (012.34.5.1, 012.34.5.2, 012.34.5.3, etc.) I have yet to find a useful application of this, maybe if there is a site scraping your content you can block them, who knows.</p>
<p>You can also set an option for deny from all, which would of course deny everyone. You can also allow or deny by domain name rather than IP address (allow from .javascriptkit.com works for <a href="http://www.javascriptkit.com/" rel="nofollow">www.javascriptkit.com</a> or virtual.javascriptkit.com, etc.)</p>
<p><strong><a id="Blockinguserssitesbyreferrer" name="Blockinguserssitesbyreferrer"></a>Blocking users/ sites by referrer</strong></p>
<p>Blocking users or sites that originate from a particular domain is another useful trick of .htaccess. Lets say you check your logs one day, and see tons of referrals from a particular site, yet upon inspection you can&#8217;t find a single visible link to your site on theirs. The referral isn&#8217;t a &#8220;legitimate&#8221; one, with the site most likely hot linking to certain files on your site such as images,</p>
<p>.css files, or files you can&#8217;t even make out. Remember, your logs will generate a referrer entry for any kind of reference to your site that has a traceable origin.</p>
<p>Before I get to the code itself, it&#8217;s important to note that blocking access by referrer in .htaccess requires the help of the Apache module mod_rewrite to make out the referrer first. This module is installed by default on most servers (ask your host if you&#8217;re not sure). So, to deny access all traffic that originate from a particular domain (referrers) to your site, use the following code:</p>
<p><strong><a id="Blocktrafficfromasinglereferrer" name="Blocktrafficfromasinglereferrer"></a>Block traffic from a single referrer:</strong><br />
RewriteEngine on<br />
# Options +FollowSymlinks<br />
RewriteCond %{HTTP_REFERER} badsite\.com [NC]<br />
RewriteRule .* &#8211; [F]</p>
<p><strong><a id="Blocktrafficfrommultiplereferrers" name="Blocktrafficfrommultiplereferrers"></a>Block traffic from multiple referrers</strong></p>
<p>RewriteEngine on<br />
# Options +FollowSymlinks<br />
RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR]<br />
RewriteCond %{HTTP_REFERER} anotherbadsite\.com<br />
RewriteRule .* &#8211; [F]</p>
<p>In the &#8220;single referrer&#8221; case above, &#8220;badsite\.com&#8221; is the domain you wish to block. Note the backslash proceeding the period (&#8220;.&#8221;) to actually donate a period, as in Regular Expressions, a period donates any character, which is not what we want. The flag &#8220;[NC]&#8221; is added to the end of the domain to make it case insensitive, so whether the domain is &#8220;badsite.com&#8221;, &#8220;Badsite.com&#8221; etc, however bad it gets, it gets blocked. Finally, the last line in the .htaccess file specifies that the action to take when a match is found is to fail the request, meaning the referrer traffic will hit a 403 Forbidden error. The only difference between blocking a single referrer and multiple referrers is the modified [NC, OR] flag in the later case to every domain but the last.</p>
<p>Now, you may have noticed the line &#8220;Options +FollowSymlinks&#8221; above, which is commented. Uncomment this line if your server isn&#8217;t configured with FollowSymLinks in its &lt;directory&gt; section in httpd.conf, and you get a 500 Internal Server error when using the code above as is.</p>
<p><strong><a id="Blockingbadbotsandsiterippersakaofflinebrowsers" name="Blockingbadbotsandsiterippersakaofflinebrowsers"></a>Blocking bad bots and site rippers (aka offline browsers)</strong><br />
Below is a useful code block you can insert into.htaccess file for blocking a lot of the known bad bots and site rippers currently out there. It is derived from my reading of the excellent discussion &#8220;A close to perfect .htaccess file&#8221;, specifically, &#8220;A close to perfect .htaccess file II.&#8221; Simply add the below code to your .htaccess file:<br />
Refer More…<br />
<a href="http://www.webmasterworld.com/forum13/687-1-10.htm" rel="nofollow">http://www.webmasterworld.com/forum13/687-1-10.htm</a><br />
<a href="http://www.webmasterworld.com/forum92/205.htm" rel="nofollow">http://www.webmasterworld.com/forum92/205.htm</a></p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:<a href="mailto:craftbot@yahoo.com" rel="nofollow">craftbot@yahoo.com</a> [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]<br />
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]</p>
<p>&nbsp;</p>
<p>Bots that are listed above will all receive a 403 Forbidden error when trying to view your site. The amount of bandwidth savings and decrease in server resource usage as a result may be significant in many cases.</p>
<p><strong><a id="Changeyourdefaultdirectorypage" name="Changeyourdefaultdirectorypage"></a>Change your default directory page</strong><br />
Some of you may be wondering, just what in the world is a DirectoryIndex? Well, grasshopper, this is a command which allows you to specify a file that is to be loaded as your default page whenever a directory or url request comes in, that does not specify a specific page. Tired of having <a href="http://yoursite.com/index" rel="nofollow">yoursite.com/index</a>. html come up when you go to yoursite.com? Want to change it to be <a href="http://yoursite.com/ILikePizzaSteve.html" rel="nofollow">yoursite.com/ILikePizzaSteve.html</a> that comes up instead? No problem!</p>
<pre>DirectoryIndex filename.html</pre>
<p>This would cause filename.html to be treated as your default page, or default directory page. You can also append other filenames to it. You may want to have certain directories use a script as a default page. That&#8217;s no problem too!</p>
<pre>DirectoryIndex filename.html index.cgi index.pl default.htm</pre>
<p>Placing the above command in your htaccess file</p>
<p>will cause this to happen: When a user types in yoursite.com, your site will look for filename.html in your root directory (or any directory if you specify this in the global htaccess), and if it finds it, it will load that page as the default page. If it does not find filename.html, it will then look for index.cgi; if it finds that one, it will load it, if not, it will look for index.pl and the whole process repeats until it finds a file it can use. Basically, the list of files is read from left to right.</p>
<p><strong><a id="Redirects" name="Redirects"></a>Redirects</strong><br />
Ever go through the nightmare of changing significantly portions of your site, then having to deal with the problem of people finding their way from the old pages to the new? It can be nasty. There are different ways of redirecting pages, through http-equiv, javascript or any of the server-side languages. And then you can do it through htaccess, which is probably the most effective, considering the minimal amount of work required to do it.<br />
htaccess uses redirect to look for any request for a specific page (or a non-specific location, though this can cause infinite loops) and if it finds that request, it forwards it to a new page you have specified:<br />
Redirect /olddirectory/oldfile.html <a href="http://yoursite.com/newdirectory/newfile.html" rel="nofollow">http://yoursite.com/newdirectory/newfile.html</a><br />
Note that there are 3 parts to that, which should all be on one line : the <strong>Redirect</strong> command, the location of the file/directory you want redirected relative to the root of your site (/olddirectory/oldfile.html = <a href="http://yoursite.com/olddirectory/oldfile.html" rel="nofollow">yoursite.com/olddirectory/oldfile.html</a>) and the full URL of the location you want that request sent to. Each of the 3 is separated by a single space, but all on one line. You can also redirect an entire directory by simple using <strong>Redirect /olddirectory <a href="http://yoursite.com/newdirectory/" rel="nofollow">http://yoursite.com/newdirectory/</a></strong><br />
Using this method, you can redirect any number of pages no matter what you do to your directory structure. It is the fastest method that is a global affect.</p>
<p><strong><a id="Preventviewingofhtaccessfile" name="Preventviewingofhtaccessfile"></a>Prevent viewing of .htaccess file</strong><br />
If you use htaccess for password protection, then the location containing all of your password information is plainly available through the htaccess file. If you have set incorrect permissions or if your server is not as secure as it could be, a browser has the potential to view an htaccess file through a standard web interface and thus compromise your site/server. This, of course, would be a bad thing. However, it is possible to prevent an htaccess file from being viewed in this manner:<br />
&lt;Files .htaccess&gt;<br />
order allow,deny<br />
deny from all<br />
&lt;/Files&gt;<br />
The first line specifies that the file named <strong>.htaccess</strong> is having this rule applied to it. You could use this for other purposes as well if you get creative enough.<br />
If you use this in your htaccess file, a person trying to see that file would get returned (under most server configurations) a 403 error code. You can also set permissions for your htaccess file via CHMOD, which would also prevent this from happening, as an added measure of security: 644 or RW-R&#8211;R&#8211;</p>
<p><strong><a id="AddingMIMETypes" name="AddingMIMETypes"></a>Adding MIME Types</strong><br />
What if your server wasn&#8217;t set up to deliver certain file types properly? A common occurrence with MP3 or even SWF files. Simple enough to fix:</p>
<pre>AddType application/x-shockwave-flash swf</pre>
<p><strong>AddType</strong> is specifying that you are adding a MIME type. The <strong>application</strong> string is the actual parameter of the MIME you are adding, and the final little bit is the default extension for the MIME type you just added, in our example this is <strong>swf</strong> for ShockWave File.</p>
<p><strong><a id="Preventinghotlinkingofimagesandotherfiletypes" name="Preventinghotlinkingofimagesandotherfiletypes"></a>Preventing hot linking of images and other file types</strong><br />
In the webmaster community, &#8220;hot linking&#8221; is a curse phrase. Also known as &#8220;bandwidth stealing&#8221; by the angry site owner,  it refers to linking directly to non-html objects not on one own&#8217;s server, such as images, .js files etc. The victim&#8217;s server in this case is robbed of bandwidth (and in turn money) as the violator enjoys showing content without having to pay for its deliverance. The most common practice of hot linking pertains to another site&#8217;s images.<br />
Using .htaccess, you can disallow hot linking on your server, so those attempting to link to an image or CSS file on your site, for example, is either blocked (failed request, such as a broken image) or served a different content (ie: an image of an angry man) . Note that mod_rewrite needs to be enabled on your server in order for this aspect of .htaccess to work. Inquire your web hostregarding this.<br />
With all the pieces in place, here&#8217;s how to disable hot linking of certain file types on your site, in the case below, images, JavaScript (js) and CSS (css) files on your site. Simply add the below code to your .htaccess file, and upload the file either to your root directory, or a particular subdirectory to localize the effect to just one section of your site:</p>
<pre>RewriteEngine on</pre>
<pre>RewriteCond %{HTTP_REFERER} !^$</pre>
<pre>RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]</pre>
<pre>RewriteRule \.(gif|jpg|js|css)$ - [F]</pre>
<p>Be sure to replace &#8220;mydomain.com&#8221; with your own. The above code creates a failed request when hot linking of the specified file types occurs. In the case of images, a broken image is shown instead.</p>
<h4><a id="Servingalternatecontentwhenhotlinkingisdetected" name="Servingalternatecontentwhenhotlinkingisdetected"></a>Serving alternate content when hot linking is detected</h4>
<p>You can set up your .htaccess file to actually serve up different content when hot linking occurs. This is more commonly done with images, such as serving up an Angry Man image in place of the hot linked one. The code for this is:</p>
<pre>RewriteEngine on</pre>
<pre>RewriteCond %{HTTP_REFERER} !^$</pre>
<pre>RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]</pre>
<pre>RewriteRule \.(gif|jpg)$ http://www.mydomain.com/angryman.gif [R,L]</pre>
<p>Same deal- replace mydomain.com with your own, plus angryman.gif.<br />
Time to pour a bucket of cold water on hot linking!</p>
<p><strong><a id="PreventingDirectoryListing" name="PreventingDirectoryListing"></a>Preventing Directory Listing</strong><br />
Do you have a directory full of images or zips that you do not want people to be able to browse through? Typically a server is setup to prevent directory listing, but sometimes they are not. If not, become self-sufficient and fix it yourself:<br />
IndexIgnore *<br />
The * is a wildcard that matches all files, so if you stick that line into an htaccess file in your images directory, nothing in that directory will be allowed to be listed.<br />
On the other hand, what if you did want the directory contents to be listed, but only if they were HTML pages and not images? Simple says I:<br />
IndexIgnore *.gif *.jpg<br />
This would return a list of all files <strong>not</strong> ending in .jpg or .gif, but would still list .txt, .html, etc.<br />
And conversely, if your server is setup to prevent directory listing, but you want to list the directories by default, you could simply throw this into an htaccess file the directory you want displayed:<br />
Options +Indexes<br />
If you do use this option, be very careful that you do not put any unintentional or compromising files in this directory. And if you guessed it by the plus sign before Indexes, you can throw in a minus sign (<strong>Options -Indexes</strong>) to prevent directory listing entirely&#8211;this is typical of most server setups and is usually configured elsewhere in the apache server, but can be overridden through htaccess.<br />
If you really want to be tricky, using the +Indexes option, you can include a default description for the directory listing that is displayed when you use it by placing a file called <strong>HEADER</strong> in the same directory. The contents of this file will be printed out before the list of directory contents is listed. You can also specify a footer, though it is called <strong>README</strong>, by placing it in the same directory as the HEADER. The README file is printed out after the directory listing is printed.<br />
Typically servers are setup to prevent directory listing, but often they aren&#8217;t. If you have a directory full of downloads or images that you don&#8217;t want people to be able to browse through, add the following line to your .htaccess file&#8230;<br />
IndexIgnore *<br />
The * matches all files. If, for example, you want to prevent only listing of images, use&#8230;<br />
IndexIgnore *.gif *.jpg</p>
<p><strong><a id="AlternativeIndexFiles" name="AlternativeIndexFiles"></a>Alternative Index Files</strong><br />
You may not always want to use index.htm or index.html as your index file for a directory, for example if you are using PHP files in your site, you may want index.php to be the index file for a directory. You are not limited to &#8216;index&#8217; files though. Using .htaccess you can set foofoo.blah to be your index file if you want to!</p>
<p>Alternate index files are entered in a list. The server will work from left to right, checking to see if each file exists, if none of them exisit it will display a directory listing (unless, of course, you have turned this off).</p>
<p>DirectoryIndex index.php index.php3 messagebrd.pl index.html index.htm</p>
<p><strong><a id="PasswordProtectionwithhtaccess" name="PasswordProtectionwithhtaccess"></a>Password Protection with .htaccess</strong></p>
<p>Although there are many uses of the .htaccess file, by far the most popular, and probably most useful, is being able to relaibly password protect directories on websites. Although JavaScript etc. can also be used to do this, only .htaccess has total security (as someone must know the password to get into the directory, there are no &#8216;back doors&#8217;)</p>
<p><strong>The .htaccess File</strong></p>
<p>Adding password protection to a directory using .htaccess takes two stages. The first part is to add the appropriate lines to your .htaccess file in the directory you would like to protect. Everything below this directory will be password protected:</p>
<p>AuthName &#8220;Section Name&#8221;<br />
AuthType Basic<br />
AuthUserFile /full/path/to/.htpasswd<br />
Require valid-user</p>
<p>There are a few parts of this which you will need to change for your site. You should replace &#8220;Section Name&#8221; with the name of the part of the site you are protecting e.g. &#8220;Members Area&#8221;.</p>
<p>The /full/parth/to/.htpasswd should be changed to reflect the full server path to the .htpasswd file (more on this later). If you do not know what the full path to your webspace is, contact your system administrator for details.</p>
<p><strong>The .htpasswd File</strong></p>
<p>Password protecting a directory takes a little more work than any of the other .htaccess functions because you must also create a file to contain the usernames and passwords which are allowed to access the site. These should be placed in a file which (by default) should be called .htpasswd. Like the .htaccess file, this is a file with no name and an 8 letter extension. This can be placed anywhere within you website (as the passwords are encrypted) but it is advisable to store it outside the web root so that it is impossible to access it from the web.</p>
<p><strong>Entering Usernames And Passwords</strong></p>
<p>Once you have created your .htpasswd file (you can do this in a standard text editor) you must enter the usernames and passwords to access the site. They should be entered as follows:</p>
<p>username:password</p>
<p>where the password is the encrypted format of the password. To encrypt the password you will either need to use one of the premade scripts available on the web or write your own. There is a good username/password service at the KxS site which will allow you to enter the user name and password and will output it in the correct format.</p>
<p>For multiple users, just add extra lines to your .htpasswd file in the same format as the first. There are even scripts available for free which will manage the .htpasswd file and will allow automatic adding/removing of users etc.</p>
<p><strong>Accessing The Site</strong></p>
<p>When you try to access a site which has been protected by .htaccess your browser will pop up a standard username/password dialog box. If you don&#8217;t like this, there are certain scripts available which allow you to embed a username/password box in a website to do the authentication. You can also send the username and password (unencrypted) in the URL as follows:</p>
<p><a href="http://username:password@www.website.com/directory/" rel="nofollow">http://username:password@www.website.com/directory/</a></p>
<p><strong><a id="Savebandwidthwithhtaccess" name="Savebandwidthwithhtaccess"></a>Save bandwidth with .htaccess!</strong><br />
If you pay for your bandwidth, this wee line could save you hard <strong>cash</strong>..</p>
<p><strong>Save me hard cash! and help the internet! </strong><br />
&lt;ifModule mod_php4.c&gt;<br />
php_value zlib.output_compression 16386<br />
&lt;/ifModule&gt;</p>
<p>All it does is enables PHP&#8217;s built-in transparent zlib compression. This will half your bandwidth usage in one stroke, more than that, in fact. Of course it only works with data being output by the PHP module, but if you design your pages with this in mind, you can use php echo statements, or better yet, php &#8220;includes&#8221; for your plain html output and just compress <em>everything!</em>Remember, if you run phpsuexec, you&#8217;ll need to put php directives in a local php.ini file, not .htaccess. See here for more details.</p>
<p>&#8220;Bandwidth stealing,&#8221; also known as &#8220;hot linking,&#8221; is linking directly to non-html objects on another server, such as images, electronic books etc. The most common practice of hot linking pertains to another site&#8217;s images.<br />
To disallow hot linking on your server, create the following .htaccess file and upload it to the folder that contains the images you wish to protect&#8230;</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^<a href="http://%28www%5C.%29/?YourSite%5C.com/.*%24" rel="nofollow">http://(www\.)?YourSite\.com/.*$</a> [NC]<br />
RewriteRule \.(gif|jpg)$ &#8211; [F]</p>
<p>Replace &#8220;YourSite.com&#8221; with your own. The above code causes a broken image to be displayed when it&#8217;s hot linked. If you&#8217;d like to display an alternate image in place of the hot linked one, replace the last line with&#8230;</p>
<p>RewriteRule \.(gif|jpg)$ <a href="http://www.yoursite.com/stop.gif" rel="nofollow">http://www.YourSite.com/stop.gif</a> [R,L]<br />
Replace &#8220;YourSite.com&#8221; and stop.gif with your real names.</p>
<p><strong>Hide and deny files..</strong><br />
Do you remember I mentioned that any file beginning with .ht is invisible? ..&#8221;almost every web server in the world is configured to ignore them, by default&#8221; and that is, of course, because .ht_anything files generally have server directives and passwords and stuff in them, <em>most</em>  servers will have something like this in their main configuration..<br />
<strong>Standard setting.. </strong><br />
&lt;Files ~ &#8220;^\.ht&#8221;&gt;<br />
Order allow,deny<br />
Deny from all<br />
Satisfy All<br />
&lt;/Files&gt;</p>
<p>which instructs the server to deny access to any file beginning with .ht, effectively protecting our .htaccess and other files. The &#8220;.&#8221; at the start prevents them being displayed in an index, and the .ht prevents them being accessed. This version..<br />
<strong>ignore what you want </strong><br />
&lt;Files ~ &#8220;^.*\.([Ll][Oo][Gg])&#8221;&gt;<br />
Order allow,deny<br />
Deny from all<br />
Satisfy All<br />
&lt;/Files&gt;</p>
<p>tells the server to deny access to *.log files. You can insert multiple file types into each rule, separating them with a pipe &#8220;|&#8221;, and you can insert multiple blocks into your .htaccess file, too. I find it convenient to put all the files starting with a dot into one, and the files with denied extensions into another, something like this..<br />
<strong>the whole lot </strong><br />
# deny all .htaccess, .DS_Store $hî†é and ._* (resource fork) files<br />
&lt;Files ~ &#8220;^\.([Hh][Tt]|[Dd][Ss]_[Ss]|[_])&#8221;&gt;<br />
Order allow,deny<br />
Deny from all<br />
Satisfy All<br />
&lt;/Files&gt;</p>
<p># deny access to all .log and .comment files<br />
&lt;Files ~ &#8220;^.*\.([Ll][Oo][Gg]|[cC][oO][mM][mM][eE][nN][tT])&#8221;&gt;<br />
Order allow,deny<br />
Deny from all<br />
Satisfy All<br />
&lt;/Files&gt;</p>
<p>would cover all ._* resource fork files, .DS_Store files (which the Mac Finder creates <em>all over the place</em>) *.log files, *.comment files and of course, our .ht* files. You can add whatever file types you need to protect from direct access. I think it&#8217;s clear now why the file is called &#8220;.htaccess&#8221;.</p>
<p><strong><a id="Disabledirectorylistings" name="Disabledirectorylistings"></a>Disable directory listings</strong><br />
Preventing directory listings can be very useful if for example, you have a directory containing important &#8216;.zip&#8217; archive files or to prevent viewing of your image directories. Alternatively it can also be useful to enable directory listings if they are not available on your server, for example if you wish to display directory listings of your important &#8216;.zip&#8217; files.<br />
To prevent directory listings, create a .htaccess file following the main instructions and guidance which includes the following text:<br />
<em>IndexIgnore *</em><br />
The above lines tell the Apache Web Server to prevent directory listings of directories and files within the directory containing the .htaccess file. The &#8216;*&#8217; represents a wildcard, this means it will not display any files. It is possible to prevent listings of only certain file types, so for example you can show listings of &#8216;.html&#8217; files but not your &#8216;.zip&#8217; files.<br />
To prevent listing &#8216;.zip&#8217; files, create a .htaccess file following the main instructions and guidance which includes the following text:<br />
<em>IndexIgnore *.zip</em><br />
The above line tells the Apache Web Server to list all files except those that end with &#8216;.zip&#8217;.<br />
To prevent listing multiple file types, create a .htaccess file following the main instructions and guidance which includes the following text:</p>
<div>
<table border="0" width="90%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><em>IndexIgnore *.zip *.jpg *.gif</em></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p>The above line tells the Apache Web Server to list all files except those that end with &#8216;.zip&#8217;, &#8216;.jpg&#8217; or &#8216;.gif&#8217;.<br />
Alternatively, if your server does not allow directory listings and you would like to enable them, create a .htaccess file following the main instructions and guidance which includes the following text:<br />
<em>Options +Indexes</em></p>
<p>The above line tells the Apache Web Server to enable directory listing within the directory containing this .htaccess file. You can also reverse this to disable directory listings by replacing the plus sign before the text &#8216;Indexes&#8217; with a minus sign. e.g. &#8216;Options -Indexes&#8217;.<br />
You can also include a default description for the directory listings that is displayed at the top of the page by placing a file called &#8216;HEADER&#8217; in the same directory. The contents of this file are displayed before the list of directory contents. You can also include a footer, by creating a file called &#8216;README&#8217;. The contents of this file are displayed after the list of directory contents.</p>
<p><strong><a id="Hotlinkpreventiontechniques" name="Hotlinkpreventiontechniques"></a>Hot link prevention techniques</strong><br />
Hot link prevention refers to stopping web sites that are not your own from displaying your files or content, e.g. stopping visitors from other web sites. This is most commonly used to prevent other web sites from displaying your images but it can be used to prevent people using your JavaScript or CSS (cascading style sheet) files. The problem with hot linking is it uses your bandwidth, which in turn costs money, hot linking is often referred to as &#8216;bandwidth theft&#8217;.<br />
Using .htaccess we can prevent other web sites from sourcing your content, and can even display different content in turn. For example, it is common to display what is referred to as an &#8216;angry man&#8217; images instead of the desired images.<br />
Note, this functionality requires that &#8216;mod_rewrite&#8217; is enabled on your server. Due to the demands that can be placed on system resources, it is unlikely it is enabled so be sure to check with your system administrator or web hosting company.<br />
To set-up hot link prevention for &#8216;.gif&#8217;, &#8216;.jpg&#8217; and &#8216;.css&#8217; files, create a .htaccess file following the main instructions and guidance which includes the following text:</p>
<div>
<table border="0" width="90%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><em>RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^<a href="http://%28www%5C.%29/?yourdomain.com/.*%24" rel="nofollow">http://(www\.)?yourdomain.com/.*$</a> [NC]<br />
RewriteRule \.(gif|jpg|css)$ &#8211; [F]</em></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p>The above lines tell the Apache Web Server to block all links to &#8216;.gif&#8217;, &#8216;.jpg&#8217; and &#8216;.css&#8217; files which are not from the domain name &#8216;<a href="http://www.yourdomain.com/" rel="nofollow">http://www.yourdomain.com/</a>&#8216;. Before uploading your .htaccess file ensure you replace &#8216;yourdomain.com&#8217; with the appropriate web site address.<br />
To set-up hot link prevention for &#8216;.gif&#8217;, &#8216;.jpg&#8217; files which displays alternate content (such as an angry man image), create a .htaccess file following the main instructions and guidance which includes the following text:</p>
<div>
<table border="0" width="90%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><em>RewriteEngine on<br />
RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} !^<a href="http://%28www%5C.%29/?yourdomain.com/.*%24" rel="nofollow">http://(www\.)?yourdomain.com/.*$</a> [NC]<br />
RewriteRule \.(gif|jpg)$ <a href="http://www.yourdomain.com/hotlink.jpg" rel="nofollow">http://www.yourdomain.com/hotlink.jpg</a> [R,L]</em></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<p>The above lines tell the Apache Web Server to block all links to &#8216;.gif&#8217; and &#8216;.jpg&#8217; files which are not from the domain name &#8216;<a href="http://www.yourdomain.com/" rel="nofollow">http://www.yourdomain.com/</a>&#8216; and to display the file &#8216;<a href="http://www.yourdomain.com/hotlink.jpg" rel="nofollow">http://www.yourdomain.com/hotlink.jpg</a>&#8216; instead. Before uploading your .htaccess file ensure you replace &#8216;yourdomain.com&#8217; with the appropriate web site address.</p>
<p><strong><a id="Protectingyourimagesandzipfilesfromlinking" name="Protectingyourimagesandzipfilesfromlinking"></a>Protecting your images and (zip) files from linking</strong><br />
Module: <strong>mod_rewrite</strong></p>
<p>Put a file named <strong>.htaccess</strong> in the directory where you have the images located.<br />
AuthUserFile /dev/null<br />
AuthGroupFile /dev/null</p>
<p>RewriteEngine On</p>
<p>RewriteCond %{HTTP_REFERER} !^<a href="http://www.widexl.com.%2A/" rel="nofollow">http://www.widexl.com.*</a> [NC]<br />
RewriteCond %{HTTP_REFERER} !^<a href="http://ma.widexl.com.%2A/" rel="nofollow">http://ma.widexl.com.*</a> [NC]<br />
RewriteCond %{HTTP_REFERER} !^<a href="http://members.widexl.com.%2A/" rel="nofollow">http://members.widexl.com.*</a> [NC]<br />
RewriteCond %{HTTP_REFERER} !^<a href="http://widexl.com.%2A/" rel="nofollow">http://widexl.com.*</a> [NC]<br />
RewriteCond %{HTTP_REFERER} !^<a href="http://212.204.218.80.%2A/" rel="nofollow">http://212.204.218.80.*</a> [NC]</p>
<p>RewriteRule /* <a href="http://widexl.com/index.html" rel="nofollow">http://widexl.com/index.html</a> [R,L]<br />
By the RewriteCond change the web address name for who are allowed to use your images.<br />
By the RewriteRule change the web address name where to send the ones who are linking to.</p>
<p>Note: You need to write for every web address (hostname) a new line.<br />
Remember: <a href="http://widexl.com/" rel="nofollow">http://widexl.com</a> is not the same like <a href="http://www.widexl.com/" rel="nofollow">http://www.widexl.com</a></p>
<p><strong><a id="Reference" name="Reference"></a>Reference:</strong><br />
<a href="http://www.javascriptkit.com/howto/htaccess14.shtml" rel="nofollow">http://www.javascriptkit.com/howto/htaccess14.shtml</a><br />
<a href="http://www.freewebmasterhelp.com/tutorials/htaccess/" rel="nofollow">http://www.freewebmasterhelp.com/tutorials/htaccess/</a><br />
<a href="http://www.htaccesstutorial.net/" rel="nofollow">http://www.htaccesstutorial.net/</a><br />
<a href="http://www.askapache.com/htaccess/apache-htaccess.html" rel="nofollow">http://www.askapache.com/htaccess/apache-htaccess.html</a><br />
<a href="http://corz.org/serv/tricks/htaccess.php" rel="nofollow">http://corz.org/serv/tricks/htaccess.php</a><br />
<a href="http://www.askapache.com/htaccess/apache-htaccess.html" rel="nofollow">http://www.askapache.com/htaccess/apache-htaccess.html</a><br />
<a href="http://www.htaccess-guide.com/index.php?a=1" rel="nofollow">http://www.htaccess-guide.com/index.php?a=1</a><br />
<a href="http://www.askapache.com/htaccess/apache-htaccess.html" rel="nofollow">http://www.askapache.com/htaccess/apache-htaccess.html</a><br />
<a href="http://www.askapache.com/htaccess/apache-htaccess.html#htaccess-code-examples" rel="nofollow">http://www.askapache.com/htaccess/apache-htaccess.html#htaccess-code-examples</a><br />
<a href="http://httpd.apache.org/docs/" rel="nofollow">http://httpd.apache.org/docs/</a><br />
Apache Tutorial: .htaccess Files &#8211; Official Apache documentation and guidelines.<br />
Apache Directives &#8211; A list of directives available in the standard Apache distribution.<br />
Apache Documentation &#8211; Main Apache Web Server documentation.<br />
HotScripts.com &#8211; User management resources.<br />
The CGI Resource Index &#8211; Password protection resources.<br />
CGI-Index.com &#8211; Security resources.<br />
DirectoryPass &#8211; DirectoryPass is a very powerful, yet simple to use .htaccess management system.<br />
Locked Area &#8211; Locked Area is a highly sophisticated password protection and membership management system written in Perl.<br />
OpenCrypt &#8211; OpenCrypt is a fully automated and self-managing membership/user management system which is more than capable of the most complex multi-domain installations, whilst still being usable in the most simple of circumstances.</p>
<table border="1" width="100%">
<tbody>
<tr>
<td align="center" valign="middle"></td>
<td align="center" valign="middle"></td>
<td align="center" valign="middle"></td>
</tr>
</tbody>
</table>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apaceh-htaccess-tutorial/">Apaceh HTACCESS Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apaceh-htaccess-tutorial/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Start Apache with normal user</title>
		<link>https://www.scmgalaxy.com/tutorials/start-apache-with-normal-user/</link>
					<comments>https://www.scmgalaxy.com/tutorials/start-apache-with-normal-user/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 12:38:57 +0000</pubDate>
				<category><![CDATA[Application Server]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2782</guid>

					<description><![CDATA[<p>scmuser created the topic: Start Apache with normal user Hi, I have few normal user in linux to whom I [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/start-apache-with-normal-user/">Start Apache with normal user</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>scmuser created the topic: Start Apache with normal user</strong></p>
<p>Hi,</p>
<p>I have few normal user in linux to whom I want to give apache http start and stop access? any idea how to to do this?</p>
<p>When i start start apache httpd, then i get some error somthing like permission denied ..</p>
<pre class="brush: css; title: ; notranslate">
./apachectl start
(13)Permission denied: make_sock: could not bind to address &#x5B;::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
</pre>
<p>no listening sockets available, shutting down<br />
Unable to open logs</p>
<p>Any Solution&#8230;.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/start-apache-with-normal-user/">Start Apache with normal user</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/start-apache-with-normal-user/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Tomcat Good url Collection</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-tomcat-good-url-collection/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-tomcat-good-url-collection/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 09 Dec 2017 12:03:47 +0000</pubDate>
				<category><![CDATA[Application Server]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2757</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Apache Tomcat Good url Collection Tomcat : How to increase the Java heap size www.serveridol.com/2011/07/28/tomcat-increase-java-heap-size/ Regards, [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-tomcat-good-url-collection/">Apache Tomcat Good url Collection</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Apache Tomcat Good url Collection</strong></p>
<p>Tomcat : How to increase the Java heap size<br />
<a href="http://www.serveridol.com/2011/07/28/tomcat-increase-java-heap-size/">www.serveridol.com/2011/07/28/tomcat-increase-java-heap-size/</a></p>
<p>Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-tomcat-good-url-collection/">Apache Tomcat Good url Collection</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-tomcat-good-url-collection/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Ant: Copy Task full reference</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-ant-copy-task-full-reference/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-ant-copy-task-full-reference/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 11:39:11 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1921</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Apache Ant: Copy Task full reference This copies all files in directories called images that are [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-copy-task-full-reference/">Apache Ant: Copy Task full reference</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Apache Ant: Copy Task full reference</strong><br />
<b>This copies all files in directories called images that are located in the directory tree defined by ${src} to the destination directory defined by ${dist}, but excludes all *.gif files from the copy.</b></p>
<p><code><copy todir="${dist}"><br />
<fileset dir="${src}"
includes="**/images/*"
excludes="**/*.gif"
/><br />
</copy></p>
<p><b>The same as the example above, but expressed using nested elements.</b></p>
<p><copy todir="${dist}"><br />
<fileset dir="${src}"><br />
<include name="**/images/*"/><br />
<exclude name="**/*.gif"/><br />
</fileset><br />
</copy></p>
<p><b>Copy a single file</b><br />
<copy file="myfile.txt" tofile="mycopy.txt"/></p>
<p><b>Copy a single file to a directory</b></p>
<p><copy file="myfile.txt" todir="../some/other/dir"/></p>
<p><b>Copy a directory to another directory</b></p>
<p><copy todir="../new/dir"><br />
<fileset dir="src_dir"/><br />
</copy></p>
<p><b>Copy a set of files to a directory</b></p>
<p><copy todir="../dest/dir"><br />
<fileset dir="src_dir"><br />
<exclude name="**/*.java"/><br />
</fileset><br />
</copy></p>
<p><copy todir="../dest/dir"><br />
<fileset dir="src_dir" excludes="**/*.java"/><br />
</copy></p>
<p><b>Copy a set of files to a directory, replacing @TITLE@ with Foo Bar in all files.</b></p>
<p><copy todir="../backup/dir"><br />
<fileset dir="src_dir"/><br />
<filterset><br />
<filter token="TITLE" value="Foo Bar"/><br />
</filterset><br />
</copy></p>
<p><b>Collect all items from the current CLASSPATH setting into a destination directory, flattening the directory structure.</b><br />
<copy todir="dest" flatten="true">
    <path>
      <pathelement path="${java.class.path}"/>
    </path>
  </copy></p>
<p><b>Copies some resources to a given directory.</b><br />
<copy todir="dest" flatten="true"><br />
    <resources><br />
      <file file="src_dir/file1.txt"/><br />
      <url url="http://ant.apache.org/index.html"/><br />
    </resources><br />
  </copy></p>
<p><b>Copies the two newest resources into a destination directory.</b><br />
<copy todir="dest" flatten="true"><br />
    <first count="2"><br />
      <sort><br />
        <date xmlns="antlib:org.apache.tools.ant.types.resources.comparators"/><br />
        <resources><br />
          <file file="src_dir/file1.txt"/><br />
          <file file="src_dir/file2.txt"/><br />
          <file file="src_dir/file3.txt"/><br />
          <url url="http://ant.apache.org/index.html"/><br />
        </resources><br />
      </sort><br />
    </first><br />
  </copy></p>
<p><b>copy a set of files</b><br />
<copy todir="${temp.dir.classes}"><br />
  <fileset dir="${src.dir}"><br />
    <include name="**/*.xml"/><br />
    <include name="**/*.xsl"/><br />
    <include name="**/*.properties"/><br />
  </fileset><br />
</copy></p>
<p><b>Ant copy task examples</b><br />
<copy file="${resources.dir}/MANIFEST.MF" tofile="${temp.dir.meta-inf}/MANIFEST.MF" overwrite="true" /><br />
<copy file="${resources.dir}/managed-beans.xml" tofile="${temp.dir.web-inf}/managed-beans.xml" overwrite="true" /><br />
<copy file="${resources.dir}/navigation-rules.xml" tofile="${temp.dir.web-inf}/navigation-rules.xml" overwrite="true" /><br />
<copy file="${resources.dir}/monitoring-managed-beans.xml" tofile="${temp.dir.web-inf}/monitoring-managed-beans.xml" overwrite="true" /><br />
<copy file="${resources.dir}/monitoring-navigation-rules.xml" tofile="${temp.dir.web-inf}/monitoring-navigation-rules.xml" overwrite="true" /><br />
<copy file="${resources.dir}/faces-config.xml" tofile="${temp.dir.web-inf}/faces-config.xml" overwrite="true" /><br />
<copy file="${resources.dir}/log4j.properties" tofile="${temp.dir.classes}/log4j.properties" overwrite="true" /><br />
<copy file="${resources.dir}/commons-logging.properties" tofile="${temp.dir.classes}/commons-logging.properties" overwrite="true" /><br />
fileset dir="${config.deploy.dir}"><br />
            <include name="**"/><br />
            <exclude name="apps/"/><br />
           </fileset></code><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-copy-task-full-reference/">Apache Ant: Copy Task full reference</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-ant-copy-task-full-reference/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to put new line in apache ant message</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 11:35:43 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1919</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: How to put new line in apache ant message How to put new line in Apache [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/">How to put new line in apache ant message</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: How to put new line in apache ant message</strong><br />
How to put new line in Apache Ant echo task and mail task:</p>
<p>Answer:<br />
line.separator is Java System Properties which can be used for this purpose.<br />
Found the solution (tried with Ant 1.7.0):</p>
<p>1. You might wrap the message-texts within the XML file.<br />
2. If you put ${line.separator} in front of the line every space before that line separator will be trimmed away.</p>
<p>Example Program:
<project default="play" name="sandbox">
<target name="-private"><br />
<echo message="Private message... never reached."/><br />
</target></p>
<p><target name="play"><br />
<echo message="Lorem Ipsum Dolor"/><br />
<echo message="

"/><br />
<echo message="Lorem${line.separator} Ipsum${line.separator} Dolor"/><br />
<echo message="
"/><br />
<echo message="Lorem ${line.separator}Ipsum ${line.separator}Dolor"/><br />
<echo message="
"/><br />
<fail message="Failure Title ${line.separator} Ipsum ${line.separator} Dolor"/><br />
</target>
</project>
<p>Note:<br />
If new properties get added (it happens), expect them to appear under the &#8220;ant.&#8221; and &#8220;org.apache.tools.ant&#8221; prefixes, unless the developers have a very good reason to use another prefix. Accordingly, please avoid using properties that begin with these prefixes. This protects you from future Ant releases breaking your build file.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/">How to put new line in apache ant message</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-put-new-line-in-apache-ant-message/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Can you create a list of files in Apache ant without using touch tasks</title>
		<link>https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/</link>
					<comments>https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:29:33 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1898</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Can you create a list of files in Apache ant without using touch tasks Can you [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/">Can you create a list of files in Apache ant without using touch tasks</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Can you create a list of files in Apache ant without using touch tasks</strong><br />
Can you create a list of files in Apache ant without using touch tasks?<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/">Can you create a list of files in Apache ant without using touch tasks</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/can-you-create-a-list-of-files-in-apache-ant-without-using-touch-tasks/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache ant interview questions</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:27:24 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1896</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Apache ant interview questions Links to all Apache Ant Task &#8211; ant.apache.org/manual/tasklist.html Question 1. Write a [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/">Apache ant interview questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Apache ant interview questions</strong><br />
Links to all Apache Ant Task &#8211;<a href="http://ant.apache.org/manual/tasklist.html"> ant.apache.org/manual/tasklist.html </a></p>
<p>Question 1. Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.</p>
<p>Question 2. Write a ant build.xml which should copy the files and folders from another and create a tar file.</p>
<p>Question 3. Linux &#8211; Write a ant build.xml which should create 5 files and five folders and change the file permission to all files to 644 and folder to 755.</p>
<p>Question 4. Write a two build.xml named with &#8220;build1.xml&#8221; and &#8220;build2.xml&#8221;. Each build.xml will compile one java program but build2.xml should be called from build1.xml.</p>
<p>Question 5. Go through all these questions mentioned in the url below and try to find an answer and provide your answer as part of comments.<br />
www.scmgalaxy.com/index.php?option=com_k&#8230;d-answers&#038;Itemid=120<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>sribhavani_u replied the topic: Apache ant interview questions</strong><br />
Question1<br />
========
<project name="createdir" basedir="." default="batch">
<target name="batch"><br />
<exec dir="." executable="cmd"><br />
<arg line ="/c createdir.bat" /><br />
</exec><br />
</target>
</project>
<p>Question2<br />
=========
<project name="copyfiles" basedir="." default="tar">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<target name="copy"><br />
<copy todir="${build.dir}"><br />
<fileset dir="${src.dir}"><br />
</fileset><br />
</copy><br />
</target><br />
<target name="tar" depends="copy"><br />
<tar destfile="C:\SRI PROJECTS\apache-ant-1.9.0\testwork/tarfile.tar" basedir="${build.dir}"/><br />
</target>
</project>
<p>Question 3<br />
=========
<project name="setperm" basedir="." default="changeperm">
<target name="createfile"><br />
<touch file="file1"/><br />
<touch file="file2"/><br />
<touch file="file3"/><br />
<touch file="file4"/><br />
<touch file="file5"/><br />
<echo>files created</echo><br />
</target><br />
<target name="createfolder"><br />
<mkdir dir="folder1"/><br />
<mkdir dir="folder2"/><br />
<mkdir dir="folder3"/><br />
<mkdir dir="folder4"/><br />
<mkdir dir="folder5"/><br />
<echo>Folders created</echo><br />
</target><br />
<target name="changeperm" depends="createfolder,createfile"><br />
<chmod perm="644" type="file"><br />
<fileset dir="/home/sri/antwork"><br />
<exclude name="**/*.xml"/><br />
</fileset><br />
</chmod><br />
<chmod perm="755" type="dir"><br />
<dirset dir="/home/sri/antwork"/><br />
</chmod><br />
<echo>permissions changed files:644 folders:755</echo><br />
</target>
</project>
<p>Question4<br />
=========<br />
q4build1
<project name="build1" basedir="." default="callbuild">
<target name="clean"><br />
<delete dir="build"/><br />
</target><br />
<target name="compile" depends="clean"><br />
<mkdir dir="build"/><br />
<javac srcdir="." destdir="build"><br />
<include name="HelloWorld.java"/><br />
</javac><br />
</target><br />
<target name="callbuild" depends="compile"><br />
<ant antfile="build2.xml" inheritrefs="false"/><br />
</target>
</project>
<p>q4build2
<project name="build2" basedir="." default="compile">
<target name="compile" ><br />
<javac srcdir="." destdir="build"><br />
<include name="HelloWorld2.java"/><br />
</javac><br />
</target>
</project>
<p><strong>nineetha replied the topic: Apache ant interview questions</strong><br />
QUESTION 1
<project name="dir" basedir="." default="">
<target name="creatingbatch"><br />
<exec dir="D:\Projects\bin" executable="cmd"><br />
<arg line ="/c md.bat" /><br />
</exec><br />
</target>
</project>[/b]</p>
<p>QUESTION 2
<project name="copyfiles" basedir="." default="createtar">
<property name="src.dir" value="src"/>
<property name="bin.dir" value="bin"/>
<p><target name="copy"><br />
<copy todir="${src.dir}"><br />
<fileset dir=${bin.dir}"><br />
</fileset><br />
</copy><br />
</target><br />
<target name="create tar" depends="copy"><br />
<tar destfile="D:\Projects\build.tar" basedir="D:\Projects\src"/><br />
</target>
</project>
<p>QUESTSION 3
<project name="permissions" basedir="." default="chmod">
<target name="create file"><br />
<touch file="file1"/><br />
<touch file="file2"/><br />
<touch file="file3"/><br />
<touch file="file4"/><br />
<touch file="file5"/><br />
</target><br />
<target name="create folders"><br />
<mkdir dir="dir1"/><br />
<mkdir dir="dir2"/><br />
<mkdir dir="dir3"/><br />
<mkdir dir="dir4"/><br />
<mkdir dir="dir5"/><br />
</target><br />
<target name="chmod" depends="create file,create folders"><br />
<exec executable="chmod" type="file"><br />
<arg value="644"/><br />
<arg value="D:\Projects"><br />
</exec><br />
<target name="chmod_files" depends="create folders"><br />
<exec executable="chmod" type="dir"><br />
<arg value="755"/><br />
<arg value="D:\Projects"><br />
</exec><br />
</target>
</project>
<p>QUESTION 4
<project name="call" basedir="." default="subant1">
target<name="subant1" ><br />
<subant target="subant2"><br />
<fileset dir="." includes="helloworld/build.xml"/>&#8221;<br />
<javac srcdir="${src}" destdir="{bin}"><br />
</subant><br />
</target>
</project>
<project name="call2" basedir=".">
<target name="subant2"><br />
<subant taget="subant2"><br />
<javac srcdir="{src}" destdir="{bin}"><br />
<fileset dir="." includes="*/build.xml"/><br />
<fileset dir="." includes="welcome/build.xml"/><br />
</subant>
</project>
<p><strong>rajeshkumar replied the topic: Apache ant interview questions</strong><br />
Good work. I checked last week and its nice.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/">Apache ant interview questions</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-ant-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Sample Apache ant assignment &#8211; try it out</title>
		<link>https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/</link>
					<comments>https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:19:18 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1892</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Sample Apache ant assignment &#8211; try it out Clone the prject- github.com/scmgalaxy/helloworld-java-ant Duplicate 10 source file [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/">Sample Apache ant assignment &#8211; try it out</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Sample Apache ant assignment &#8211; try it out</strong><br />
Clone the prject- <a href="http://github.com/scmgalaxy/helloworld-java-ant">github.com/scmgalaxy/helloworld-java-ant</a> </p>
<p>Duplicate 10 source file from HelloWorld.java<br />
Create a directory called &#8220;mybuild&#8221;<br />
Clean all 10 java class files if exist<br />
compile only 5 java files<br />
Copy rest 5 files under folder called &#8220;no-need-to-compile&#8221;<br />
create package of jar / war of the compiled files<br />
Note: must use echo in all programs<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>crystal2904 replied the topic: Sample Apache ant assignment &#8211; try it out</strong>
<project name="MyProject" basedir="." default="package">
<property name="src.dir" value="src"/>
<property name="build.dir" value="mybuild"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="no-need-to-compile" value="${build.dir}/no-need-to-compile" />
<p><target name="clean"><br />
<echo message="We are in cleaning target........."/><br />
<delete dir="${build.dir}"/><br />
<echo message="Cleaning is done..."	/><br />
</target></p>
<p><target name="compile" depends="clean"><br />
<echo message="Its time to compile only 5 files.... start Compiling" /><br />
<mkdir dir="${classes.dir}"/><br />
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" ><br />
<include name="HelloWorld.java" /><br />
<include name="HelloWorld1.java" /><br />
<include name="HelloWorld2.java" /><br />
<include name="HelloWorld3.java" /><br />
<include name="HelloWorld4.java" /><br />
</javac><br />
<echo message="Compiled....."/><br />
</target></p>
<p><target name="mkdir" depends="compile"><br />
<echo message="First Creating the directory" /><br />
<mkdir dir="${no-need-to-compile}"/><br />
<echo message="Directory Created"/><br />
</target></p>
<p><target name="copy" depends="mkdir"><br />
<echo message="Going to copy the remaining filw which are not compiled to ${no-need-to-compile} folder" /><br />
<copy todir="${no-need-to-compile}" ><br />
<fileset dir="${src.dir}" ><br />
<exclude name="HelloWorld.java" /><br />
<exclude name="HelloWorld1.java" /><br />
<exclude name="HelloWorld2.java" /><br />
<exclude name="HelloWorld3.java" /><br />
<exclude name="HelloWorld4.java" /><br />
</fileset><br />
</copy><br />
<echo message="Files are moved" /><br />
</target></p>
<p><target name="package" depends="copy"><br />
<echo message="Now building the jar .... " /><br />
<mkdir dir="${jar.dir}"/><br />
<jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}"></p>
<p></jar><br />
<echo message="You know something jar is built"/><br />
</target></p>
<p><target name="clean-build" depends="clean,package"/></p>
</project>
<p><strong>rajeshkumar replied the topic: Sample Apache ant assignment &#8211; try it out</strong><br />
There are some issues in terms of understanding the requirement but its a good start to you.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/">Sample Apache ant assignment &#8211; try it out</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/sample-apache-ant-assignment-try-it-out/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Sample Apache ant project for begginers</title>
		<link>https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/</link>
					<comments>https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:12:46 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1886</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Sample Apache ant project for begginers Pre- 1. clone the src code from &#8211; github.com/scmgalaxy/Javatest1 2. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/">Sample Apache ant project for begginers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Sample Apache ant project for begginers</strong><br />
Pre-<br />
1. clone the src code from &#8211; <a href="http://github.com/scmgalaxy/Javatest1">github.com/scmgalaxy/Javatest1</a><br />
2. Create a proper build structure via ant</p>
<p>Write a two build.xml &#8211;<br />
One(Name of the file &#8211; Build.xml)<br />
Second(Name of the file &#8211; myfile.xml)</p>
<p>You should do the following things in build.xml<br />
1. copy the src file from clone folder to build folder<br />
2. change the permission of file to current user<br />
3. create a build folder strcuture needed. use your knowledge<br />
4. Comiple the source code<br />
5. Call build file &#8211; myfile.xml</p>
<p>You should do the following things in myfile.xml<br />
1. Zip the compiled file.<br />
2. Create a jar file.<br />
3. Delete the .class file<br />
4. Sleep for 10 sec<br />
5. create a directory using exec.(Not ant tasks)<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>harsha924 replied the topic: Sample Apache ant project for begginers</strong><br />
Hi Rajesh,</p>
<p>Here is my assignment.</p>
<p>Regards,<br />
Harsha</p>
<p>File Attachment:<br />
File Name:	MyAntProje&#8230;rsha.zip<br />
File Size:5 KB<br />
<a href="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2017/12/MyAntProject-Harsha.zip">MyAntProject-Harsha</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/">Sample Apache ant project for begginers</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/sample-apache-ant-project-for-begginers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache ant programming Exercise</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 06 Dec 2017 10:04:30 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=1882</guid>

					<description><![CDATA[<p>rajeshkumar created the topic: Apache ant programming Exercise Apache ant programming excercise FIRST Download Ant from the Apache Software Foundation [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/">Apache ant programming Exercise</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>rajeshkumar created the topic: Apache ant programming Exercise</strong><br />
Apache ant programming excercise</p>
<p>FIRST<br />
Download Ant from the Apache Software Foundation and install it.</p>
<p>Exercise Question 1</p>
<p>Pre-<br />
1. clone the src code from &#8211;<a href="http://github.com/scmgalaxy/SampleJavaFiles"> github.com/scmgalaxy/SampleJavaFiles </a><br />
2. Create a proper build structure via ant</p>
<p>Write a two build.xml &#8211;<br />
One(Name of the file &#8211; Build.xml)<br />
Second(Name of the file &#8211; myfile.xml)</p>
<p>You should do the following things in build.xml<br />
1. copy the src file from clone folder to build folder<br />
2. change the permission of file to current user<br />
3. create a build folder strcuture needed. use your knowledge<br />
4. Comiple the source code<br />
5. Call build file &#8211; myfile.xml</p>
<p>You should do the following things in myfile.xml<br />
1. Zip the compiled file.<br />
2. Create a jar file.<br />
3. Delete the .class file<br />
4. Sleep for 10 sec<br />
5. create a directory using exec.(Not ant tasks)</p>
<p>Exercise Question 2</p>
<p>Clone the prject- github.com/scmgalaxy/helloworld-java-ant</p>
<p>Duplicate 10 source file from HelloWorld.java<br />
Create a directory called &#8220;mybuild&#8221;<br />
Clean all 10 java class files if exist<br />
compile only 5 java files<br />
Copy rest 5 files under folder called &#8220;no-need-to-compile&#8221;<br />
create package of jar / war of the compiled files<br />
Note: must use echo in all programs</p>
<p>Exercise Question 3<br />
Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.</p>
<p>Exercise Question 4</p>
<p>Links to all Apache Ant Task &#8211; ant.apache.org/manual/tasklist.html</p>
<p>Exercise Question 5<br />
Write a ant build.xml and call one batch file from build.xml. batch file should create one directory.</p>
<p>Exercise Question 6<br />
Write a ant build.xml which should copy the files and folders from another and create a tar file.</p>
<p>Exercise Question 7<br />
Linux &#8211; Write a ant build.xml which should create 5 files and five folders and change the file permission to all files to 644 and folder to 755.</p>
<p>Exercise Question 8<br />
Write a two build.xml named with &#8220;build1.xml&#8221; and &#8220;build2.xml&#8221;. Each build.xml will compile one java program but build2.xml should be called from build1.xml.</p>
<p>Exercise Question 9<br />
Go through all these questions mentioned in the url below and try to find an answer and provide your answer as part of comments.<br />
www.scmgalaxy.com/index.php?option=com_k&#8230;d-answers&#038;Itemid=120 </p>
<p>Exercise Question 10.<br />
Write a ant script which will create a directory called &#8220;hptraining&#8221; as part of target called &#8220;training&#8221;</p>
<p>Exercise Question 11.<br />
Write a ant script which will copy some files to keep under directory called &#8220;myfiles&#8221; and make sure you are renaming one file with yourname.txt.</p>
<p>Exercise Question 12.<br />
Modify a script from 3, and introduce your name thorugh command line and display using ant.</p>
<p>Exercise Question 13.<br />
Write some source code that is part of a package. Now write an Ant build file to compile, jar and javadoc the package.<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/">Apache ant programming Exercise</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-ant-programming-exercise/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Subversion 1.7 has Arrived &#124; What&#8217;s new in Subversion 1.7 ?</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-subversion-17-has-arrived/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-subversion-17-has-arrived/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 19 Dec 2011 17:55:07 +0000</pubDate>
				<category><![CDATA[SVN(Subversion)]]></category>
		<category><![CDATA[About New Subversion]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Subversion 1.7 Released]]></category>
		<category><![CDATA[Latest Subversion]]></category>
		<category><![CDATA[New]]></category>
		<category><![CDATA[Start]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Subversion 1.7]]></category>
		<category><![CDATA[Subversion 1.7 Details]]></category>
		<category><![CDATA[Subversion 1.7 Introduction]]></category>
		<category><![CDATA[Subversion New Updates]]></category>
		<category><![CDATA[Subversion New Version]]></category>
		<category><![CDATA[Subversion New Version Details]]></category>
		<category><![CDATA[Subversion Upgraded]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[Upgrade]]></category>
		<category><![CDATA[What's new in Subversion]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2011/12/19/apache-subversion-17-has-arrived/</guid>

					<description><![CDATA[<p>Apache Subversion 1.7 has Arrived Subversion 1.7.0 has been officially released today.  With the release of Subversion 1.7 comes the [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-subversion-17-has-arrived/">Apache Subversion 1.7 has Arrived | What&#8217;s new in Subversion 1.7 ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3871" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/12/apache-subversion-17-1.png" alt="apache-subversion-17" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/12/apache-subversion-17-1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/12/apache-subversion-17-1-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Apache Subversion 1.7 has Arrived</strong></p>
<p>Subversion 1.7.0 has been officially released today.  With the release of Subversion 1.7 comes the release of Subversion Edge 2.1.0.  This release of Subversion Edge brings you the server binaries for Subversion 1.7.0 as well as the latest release of Apache httpd.  In addition to the inclusion of the Subversion 1.7 server binaries this release of Subversion Edge brings a number of other nice improvements including the addition of a complete 64-bit Windows binary stack.  As with all previous Subversion Edge releases you can simply update your existing installation from the Subversion Edge web console.  There are no other special considerations, the update mechanism handles all details.</p>
<p>I encourage all users to update their Subversion Edge servers to this release so that you and your users can enjoy the new features brought from this release as well as the improved performance and fixes that comes with Subversion 1.7.  Look for updates to your favorite Subversion clients to follow shortly.</p>
<p><strong>Source:</strong> <a href="http://blogs.collab.net/subversion/2011/10/subversion-1-7-0-released/" target="_blank" rel="noopener">http://blogs.collab.net/subversion/2011/10/subversion-1-7-0-released/</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-subversion-17-has-arrived/">Apache Subversion 1.7 has Arrived | What&#8217;s new in Subversion 1.7 ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-subversion-17-has-arrived/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache web server Installation Guide, know how to Install Apache web server on Windows 7?</title>
		<link>https://www.scmgalaxy.com/tutorials/installing-apache-web-server-on-windows-7/</link>
					<comments>https://www.scmgalaxy.com/tutorials/installing-apache-web-server-on-windows-7/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 18 Jan 2011 14:10:23 +0000</pubDate>
				<category><![CDATA[App / Web Servers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache web server Configuration on Windows 7]]></category>
		<category><![CDATA[Apache web server installation on Windows 7]]></category>
		<category><![CDATA[Apache web server Installation Tutorial]]></category>
		<category><![CDATA[Apache web server Setup on Windows 7]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[how to Install Apache web server on Windows 7]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[Ways]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[Web server Installation Guide]]></category>
		<category><![CDATA[Windows 7]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2011/01/18/installing-apache-web-server-on-windows-7/</guid>

					<description><![CDATA[<p>After a quick detour to install Notepad++, I&#8217;m on my way to installing Magento. Before I can get into the [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/installing-apache-web-server-on-windows-7/">Apache web server Installation Guide, know how to Install Apache web server on Windows 7?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3907 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/01/apache-web-server-on-window.png" alt="apache-web-server-on-windows-7-installation-guide" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/01/apache-web-server-on-window.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2011/01/apache-web-server-on-window-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>After a quick <a href="http://notepad-plus-plus.org/"><span style="text-decoration: underline;"><span style="color: #0000ff;">detour to install Notepad++</span></span></a>, I&#8217;m on my way to installing Magento. Before I can get into the meat of it, though, I do require a few prerequisites.</p>
<p>From the <a href="http://www.magentocommerce.com/knowledge-base/entry/magento-installation-cheat-sheet"><span style="text-decoration: underline;"><span style="color: #0000ff;">installation instructions</span></span></a>, installing Magento requires:</p>
<ul>
<li>Apache 1.3.x or Apache 2</li>
<li>PHP 5.2.0 and above with Safe mode off</li>
<li>MySQL 4.1.20 and above</li>
</ul>
<p>After <a href="http://www.google.ca/#q=apache+2.2+windows+7"><span style="text-decoration: underline;"><span style="color: #0000ff;">a brief search</span></span></a>, I happened upon <a href="http://webdevcodex.com/tutorial-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/"><span style="text-decoration: underline;"><span style="color: #0000ff;">a very handy site</span></span></a> (Yes, my current dev machine runs Windows 7). No sense reinventing the wheel, so these instructions should do nicely.</p>
<p>I&#8217;ve chosen the latest stable release, 2.2.17, <a href="http://www.pc-tools.net/win32/md5sums/"><span style="text-decoration: underline;"><span style="color: #0000ff;">MD5-verified</span></span></a> and ready to install.</p>
<p>Always one to put the right foot forward&#8230; The first thing I&#8217;ve done is to immediately download the wrong version (src) instead of the neatly prepped installer (msi) as per the instructions. Round 1 goes to my eagerness, but after a neat revisit to the Apache download page, I&#8217;m off in the right direction.</p>
<p>After kicking off the Apache installer, my first instinct was to twitch at the frozen installer progress (Did the instructions forget about that ghastly Windows 7 User Account Control?), but after only a brief pause, the UAC prompt has displayed and the Apache web server installation is back on track.</p>
<p>None the worse for wear, time for the next step.</p>
<h2>PHP</h2>
<p>I&#8217;ve pretty much kaboshed most of <a href="http://webdevcodex.com/tutorial-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/#installphp"><span style="text-decoration: underline;"><span style="color: #0000ff;">the PHP installation instructions</span></span></a>, mostly due to its avoidance of the handy PHP for Windows installer. Pointing the installer to the Apache web server&#8217;s cgi-bin folder seems like a good idea.</p>
<p>A configuration change&#8230;</p>
<p>; Directory in which the loadable extensions (modules) reside.<br />
; http://php.net/extension-dir<br />
; extension_dir = &#8220;./&#8221;<br />
; On windows:<br />
extension_dir = &#8220;ext&#8221; ; Uncommented (removed the semicolon at the beginning of) this line</p>
<p>&#8230; and I&#8217;m <a href="http://webdevcodex.com/tutorial-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/#installphp"><span style="text-decoration: underline;"><span style="color: #0000ff;">back to the instructions</span></span></a>. After an update to my environment variables, looks like it&#8217;s time for a reboot&#8230; and sleep.</p>
<p>I&#8217;ll be leaving the MySQL install (and testing Apache web server and PHP) &#8217;til tomorrow.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/installing-apache-web-server-on-windows-7/">Apache web server Installation Guide, know how to Install Apache web server on Windows 7?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/installing-apache-web-server-on-windows-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Interview Questions &#8211; Apache Job Interview Kit</title>
		<link>https://www.scmgalaxy.com/tutorials/apche-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apche-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 17 Jun 2010 10:09:48 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Answer]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Interview]]></category>
		<category><![CDATA[Apache Interview Guide]]></category>
		<category><![CDATA[Apache Interview Q&A]]></category>
		<category><![CDATA[Apache Interview Questions & Answers]]></category>
		<category><![CDATA[Apache Job Interview]]></category>
		<category><![CDATA[Apache Job Interview Kit]]></category>
		<category><![CDATA[Apache Server]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions & Answer for Apache]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/06/17/apche-interview-questions/</guid>

					<description><![CDATA[<p>Apache Interview Questions &#8211; Apache Job Interview Kit On a fresh install, why does Apache have three config files &#8211; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apche-interview-questions/">Apache Interview Questions &#8211; Apache Job Interview Kit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4287 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apche-interview-questions.png" alt="apche-interview-questions-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apche-interview-questions.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apche-interview-questions-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Apache Interview Questions &#8211; Apache Job Interview Kit</p>
<p><strong>On a fresh install, why does Apache have three config files &#8211; srm.conf, access.conf and httpd.conf?</strong> &#8211; The first two are remnants from the NCSA times, and generally you should be ok if you delete the first two, and stick with httpd.conf.</p>
<p><strong>What’s the command to stop Apache? </strong>&#8211; kill the specific process that httpd is running under, or killall httpd. If you have apachectl installed, use apachectl stop.</p>
<p><strong>What does apachectl graceful do?</strong> &#8211; It sends a SIGUSR1 for a restart, and starts the apache server if it’s not running.<br />
<strong>How do you check for the httpd.conf consistency and any errors in it?</strong> &#8211; apachectl configtest</p>
<p><strong>When I do ps -aux, why do I have one copy of httpd running as root and the rest as nouser?</strong> &#8211; You need to be a root to attach yourself to any Unix port below 1024, and we need 80.</p>
<p>But I thought that running apache as a root is a security risk? &#8211; That one root process opens port 80, but never listens to it, so no user will actually enter the site with root rights. If you kill the root process, you will see the other kids disappear as well.</p>
<p><strong>Why do I get the message &#8220;… no listening sockets available, shutting down&#8221;?</strong> &#8211; In Apache 2 you need to have a listen directive. Just put Listen 80 in httpd.conf.</p>
<p><strong>How do you set up a virtual host in Apache? </strong><br />
&lt;VirtualHost www.techinterviews.com&gt;<br />
ServerAdmin admin@techinterviews.com<br />
DocumentRoot /home/apache/share/htdocs/hostedsites<br />
ServerName www.techinterviews.com<br />
ErrorLog /home/apache/logs/error/hostedsites/error_log<br />
TransferLog /home/apache/logs/access/hostedsites/access_log<br />
&lt;/VirtualHost&gt;</p>
<p><strong>What is ServerType directive?</strong> &#8211; It defines whether Apache should spawn itself as a child process (standalone) or keep everything in a single process (inetd). Keeping it inetd conserves resources. This is deprecated, however.</p>
<p><strong>What is mod_vhost_alias?</strong> &#8211; It allows hosting multiple sites on the same server via simpler configurations.</p>
<p><strong>What does htpasswd do?</strong> &#8211; It creates a new user in a specified group, and asks to specify a password for that user.<br />
If you specify both deny from all and allow from all, what will be the default action of Apache? &#8211; In case of ambiguity deny always takes precedence over allow.</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apche-interview-questions/">Apache Interview Questions &#8211; Apache Job Interview Kit</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apche-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 01 Jun 2010 10:05:58 +0000</pubDate>
				<category><![CDATA[Interview Questions & Answers]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache and HTTP Interview Guide]]></category>
		<category><![CDATA[Apache and HTTP Interview Q&A]]></category>
		<category><![CDATA[Apache and HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Apache and HTTP Job Interview]]></category>
		<category><![CDATA[Apache HTTP Job Interview Kit]]></category>
		<category><![CDATA[Apache Interview]]></category>
		<category><![CDATA[Apache Interview Questions and Answers]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP Interview]]></category>
		<category><![CDATA[HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Interview Questions of Apache and HTTP]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[List of Apache and HTTP Interview Questions and Answers]]></category>
		<category><![CDATA[Most Asked]]></category>
		<category><![CDATA[Questions and Answers]]></category>
		<category><![CDATA[Selected]]></category>
		<category><![CDATA[Sets]]></category>
		<category><![CDATA[Top]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/06/01/apache-and-http-interview-questions/</guid>

					<description><![CDATA[<p>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide List of Apache and HTTP Interview Questions: &#8211; &#60;!&#8211; /* [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/">Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4297 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q.png" alt="apache-and-http-interview-question-answers" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/apache-and-http-interview-q-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</strong></p>
<p><strong>List of Apache and HTTP Interview Questions: &#8211; </strong></p>
<p><!-- [if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves /> <w:TrackFormatting /> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF /> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> <w:SplitPgBreakAndParaMark /> <w:DontVertAlignCellWithSp /> <w:DontBreakConstrainedForcedTables /> <w:DontVertAlignInTxbx /> <w:Word11KerningPairs /> <w:CachedColBalance /> </w:Compatibility> <m:mathPr> <m:mathFont m:val="Cambria Math" /> <m:brkBin m:val="before" /> <m:brkBinSub m:val="&#45;-" /> <m:smallFrac m:val="off" /> <m:dispDef /> <m:lMargin m:val="0" /> <m:rMargin m:val="0" /> <m:defJc m:val="centerGroup" /> <m:wrapIndent m:val="1440" /> <m:intLim m:val="subSup" /> <m:naryLim m:val="undOvr" /> </m:mathPr></w:WordDocument> </xml><![endif]--><!-- [if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--> &lt;!&#8211; /* Font Definitions */ @font-face {font-family:&#8221;Cambria Math&#8221;; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:&#8221;&#8221;; margin-top:0in; margin-right:0in; margin-bottom:10.0pt; margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:&#8221;Calibri&#8221;,&#8221;sans-serif&#8221;; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:&#8221;Times New Roman&#8221;; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:&#8221;Times New Roman&#8221;; mso-bidi-theme-font:minor-bidi;} .MsoPapDefault {mso-style-type:export-only; margin-bottom:10.0pt; line-height:115%;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1388797391; mso-list-template-ids:-480605428;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} &#8211;&gt; <!-- [if gte mso 10]>



<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} </style>

 <![endif]--></p>
<ol type="1">
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">On a fresh install, why does Apache have three config files &#8211; srm.conf, access.conf and httpd.conf?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; The first two are remnants from the NCSA times, and generally you should be ok if you delete the first two, and stick with httpd.conf.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What’s the command to stop Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; kill the specific process that httpd is running under, or <em>killall httpd. </em>If you have apachectl installed, use apachectl stop.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What does <em>apachectl graceful</em> do?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It sends a SIGUSR1 for a restart, and starts the apache server if it’s not running.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">How do you check for the httpd.conf consistency and any errors in it?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; apachectl configtest</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">When I do ps -aux, why do I have one copy of httpd running as root and the rest as nouser?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; You need to be a root to attach yourself to any Unix port below 1024, and we need 80.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">But I thought that running apache as a root is a security risk?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; That one root process opens port 80, but never listens to it, so no user will actually enter the site with root rights. If you kill the root process, you will see the other kids disappear as well.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">Why do I get the message &#8220;… no listening sockets available, shutting down&#8221;?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; In Apache 2 you need to have a listen directive. Just put <em>Listen 80</em> in httpd.conf.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">How do you set up a virtual host in Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';">&lt;VirtualHost www.techinterviews.com&gt;</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ServerAdmin admin@techinterviews.com</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> DocumentRoot /home/apache/share/htdocs/hostedsites</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ServerName <span style="text-decoration: underline;"><span style="color: blue;">www.techinterviews.com</span></span></span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> ErrorLog /home/apache/logs/error/hostedsites/error_log</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';"> TransferLog /home/apache/logs/access/hostedsites/access_log</span><span style="font-size: 10pt; font-family: 'Courier New';"><br />
</span><span style="font-size: 10pt; font-family: 'Courier New';">&lt;/VirtualHost&gt;</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What is ServerType directive?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It defines whether Apache should spawn itself as a child process (standalone) or keep everything in a single process (inetd). Keeping it inetd conserves resources. This is deprecated, however.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What is mod_vhost_alias?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It allows hosting multiple sites on the same server via simpler configurations.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">What does htpasswd do?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; It creates a new user in a specified group, and asks to specify a password for that user.</span></li>
<li class="MsoNormal" style="line-height: normal;"><strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';">If you specify both <em>deny from all</em> and <em>allow from all</em>, what will be the default action of Apache?</span></strong><span style="font-size: 12pt; font-family: 'Times New Roman','serif';"> &#8211; In case of ambiguity deny always takes precedence over allow.</span></li>
</ol>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/">Apache and HTTP Interview Questions and Answers &#8211; Interview Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-and-http-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Continuum Version 1.3.6 Beta 1 &#8211; What&#8217;s new in Apache Continuum ?</title>
		<link>https://www.scmgalaxy.com/tutorials/apache-continuum-version-136-beta-1/</link>
					<comments>https://www.scmgalaxy.com/tutorials/apache-continuum-version-136-beta-1/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 17 Mar 2010 07:08:21 +0000</pubDate>
				<category><![CDATA[Apache Continuum]]></category>
		<category><![CDATA[About Continuum Version 1.3.6]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache Continuum Updates]]></category>
		<category><![CDATA[Apache Continuum Version 1.3.6 Beta 1]]></category>
		<category><![CDATA[Continuum]]></category>
		<category><![CDATA[Continuum Version 1.3.6]]></category>
		<category><![CDATA[Continuum Version 1.3.6 Overview]]></category>
		<category><![CDATA[Features]]></category>
		<category><![CDATA[Introduction Continuum Version 1.3.6]]></category>
		<category><![CDATA[Latest]]></category>
		<category><![CDATA[New Apache Continuum]]></category>
		<category><![CDATA[New Features]]></category>
		<category><![CDATA[New Version]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[Upgraded]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[What's new in Apache Continuum]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/03/17/apache-continuum-version-136-beta-1/</guid>

					<description><![CDATA[<p>The Apache Continuum team have released a beta of Apache Continuum 1.3.6. Apache Continuum is a continuous integration server, which [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-continuum-version-136-beta-1/">Apache Continuum Version 1.3.6 Beta 1 &#8211; What&#8217;s new in Apache Continuum ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4193 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/apache-continuum-version-13.png" alt="apache-continuum-version-136-beta-1" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/apache-continuum-version-13.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/apache-continuum-version-13-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>The <a href="http://continuum.apache.org/" target="_blank" rel="noopener">Apache Continuum</a> team have released a beta of Apache Continuum 1.3.6.</p>
<p>Apache Continuum is a continuous integration server, which offers automated builds, role-based security, release management and integration with build tools and source control management systems. The project aims to improve quality and maintain a consistent build environment.</p>
<p>This beta introduces updates to the error handling if deleting a project fails, and has fixed the invalid links when generating pdf of continuum-docs. Untested platforms have been removed from the installation docs, and the LDAP configuration documentation has been updated.</p>
<p>A PDF version of the Continuum docs is planned for some point in the future. See the <a href="http://continuum.apache.org/docs/1.3.6/release-notes.html" target="_blank" rel="noopener">Release Notes</a> for more information.</p>
<div>
<h3>Links</h3>
<ul>
<li><a href="http://continuum.apache.org/docs/1.3.6/release-notes.html">http://continuum.apache.org/docs/1.3.6/release-notes.html…</a></li>
<li><a href="http://continuum.apache.org/">http://continuum.apache.org/…</a></li>
</ul>
</div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/apache-continuum-version-136-beta-1/">Apache Continuum Version 1.3.6 Beta 1 &#8211; What&#8217;s new in Apache Continuum ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/apache-continuum-version-136-beta-1/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
