<?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>Enable Directory Browsing Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/enable-directory-browsing/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 05 Apr 2018 08:47:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Enable Directory Browsing – Apache HTTPD Server</title>
		<link>https://www.osradar.com/enable-directory-browsing-apache-httpd-server/</link>
					<comments>https://www.osradar.com/enable-directory-browsing-apache-httpd-server/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Wed, 04 Apr 2018 15:20:05 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[directory browsing]]></category>
		<category><![CDATA[Enable Directory Browsing]]></category>
		<category><![CDATA[httpd browsing]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=2393</guid>

					<description><![CDATA[<p>Enabling Directory browsing is not recommended because of security purposes. However, sometimes, you still need this option to show something like files, folders, and pictures or something else. Today, I will show you in my case that I created my CentOS Local repo based baseurl http. This example is tested in my VMware test CentOS 7 machine [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/enable-directory-browsing-apache-httpd-server/">Enable Directory Browsing – Apache HTTPD Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Enabling Directory browsing is not recommended because of security purposes. However, sometimes, you still need this option to show something like files, folders, and pictures or something else. Today,<span style="background-color: #f6d5d9;"> I</span> will show you in my case that I created my CentOS Local repo based baseurl http. This example is tested in my VMware test CentOS 7 machine and its working very fine. Note that the default server application is Apache.</p>
<p>Please follow the bellow steps :</p>
<p><strong>1. Remove the Welcome Page</strong></p>
<p><strong>2. Add the Virtual host.</strong></p>
<p><strong>3. Add content.</strong></p>
<p>Remove Welcome Page<br />
if you have no &#8220;index.html&#8221; files on the folder the apache will stay showing the welcome page. This why we have to remove it.</p>
<pre>rm -rf /etc/httpd/conf.d/welcome.conf</pre>
<p><strong>Add the Virtual Host</strong></p>
<p>I dedicated this vhost to CentOS packages. For this reason, I created the example vhsost &#8211; centos.osradar.com. In your case, please replace the vhost bellow with your own vshost  and dont forget to add the vhost  to  &#8220;/etc/hosts&#8221;   file  or &#8220;C:\Windows\system32\drivers\etc\hosts&#8221;</p>
<pre class="">&lt;VirtualHost centos.osradar.com:80&gt;
ServerAdmin root@centos.osradar.com
ServerName centos.osradar.com
DocumentRoot /var/www/centos
&lt;Directory “/var/www/centos“&gt;
Options All Indexes FollowSymLinks
Require all granted
&lt;/Directory&gt;
ErrorLog logs/centos.osradar.com-error_log
CustomLog logs/centos.osradar.com-access_log combined
&lt;/VirtualHost&gt;</pre>
<p><strong>Add content</strong><br />
In my case, I want to see all my CentOS 7 ISO packages and  files</p>
<pre class="">mkdir /var/www/centos</pre>
<p>Mount the DVD ROM.</p>
<pre class="">mount /dev/cdrom /var/www/centos</pre>
<p><strong>Restart the Apache server.</strong></p>
<pre class="">/etc/init.d/httpd restart</pre>
<p class="">Test it by visiting the URL.</p>
<p>Disable or enable the firewall</p>
<pre class="">firewall-cmd --permanent --add-service=http

firewall-cmd  --reload</pre>
<p>Now check the links bellow</p>
<p>http://your.ip.add.ress  or http://hostname</p>
<p>Now you could see the directories and files</p>
<p><img loading="lazy" class="alignnone size-full wp-image-2396" src="https://www.osradar.com/wp-content/uploads/2018/04/apache-httpd.png" alt="" width="1022" height="628" srcset="https://www.osradar.com/wp-content/uploads/2018/04/apache-httpd.png 1022w, https://www.osradar.com/wp-content/uploads/2018/04/apache-httpd-300x184.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/apache-httpd-768x472.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/apache-httpd-356x220.png 356w, https://www.osradar.com/wp-content/uploads/2018/04/apache-httpd-696x428.png 696w, https://www.osradar.com/wp-content/uploads/2018/04/apache-httpd-684x420.png 684w" sizes="(max-width: 1022px) 100vw, 1022px" /></p>
<p>yon can use  this url  as yum repo url</p>
<pre class="">[root@centos7a yum.repos.d]# cat /etc/yum.repos.d/rhel.repo
[centos-repo]
name = centos repo server
baseurl=http://centos.example.com
enabled=1
gpgcheck=0
[root@centos7a yum.repos.d]#</pre>
<p>Is it Working? Check it out:</p>
<pre class="">[root@centos7a yum.repos.d]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id repo name status
centos-repo centos repo server 3,894
repolist: 3,894
[root@centos7a yum.repos.d]#</pre>
<p>Yes, it&#8217;s working! Enjoy!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/enable-directory-browsing-apache-httpd-server/">Enable Directory Browsing – Apache HTTPD Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/enable-directory-browsing-apache-httpd-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
