Stack How?
Stackorigin – The Community of Question and Answers Latest Articles
Read More About Python List Comprehension with examples
Python List Comprehension: Python List comprehension provides a much more short syntax for creating a new list based on the values of an existing list. Advantages of List Comprehension in Python: Time Efficient than loop Space Efficient than loop Needs ...
Do not accept an offer letter from companies.
Do not accept an offer letter from companies without verifying the following points. Designation Salary Details & CTC Distribution Leave Policies Working Hours & Days Medical Coverage/Insurance Probation Period Notice Period Benefits and Perks Bonus F&F Policy
How to call API using Ajax
AJAX stands for Asynchronous JavaScript and XML and its used for to make calls to the server to fetch some data. In this article, we will learn how to implement a simple API call using AJAX technology. How to use GET ...
If you are using a WAMP server then try this:
I understand this issue is resolved but I happened to solve this same problem on my own.
The cause of
Forbidden You don’t have permission to access / on this server
is actually the default configuration for an apache directory in httpd.conf.
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the “default” to be a very restrictive set of
# features.
#
<Directory “/”>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all # the cause of permission denied
</Directory>
Simply changing Deny from all to Allow from all should solve the permission problem.
Alternatively, a better approach would be to specify individual directory permissions on virtualhost configuration.
<VirtualHost *:80>
# Set access permission
<Directory “/path/to/docroot”>
Allow from all
</Directory>
</VirtualHost>
As of Apache-2.4, however, access control is done using the new module mod_authz_host (Upgrading to 2.4 from 2.2). Consequently, the new Require directive should be used.
<VirtualHost *:80>
# Set access permission
<Directory “/path/to/docroot”>
Require all granted
</Directory>
</VirtualHost>