Apache configuration file

Source: Internet
Author: User

In the httpd-vhost.conf file:

<virtualhost *:80>
ServerAdmin [email protected]
DocumentRoot "D:\workspace\OradtWeb1.0_bug\Public"
ServerName work10bug.com
Errorlog "Logs/my.work10bug.com-error.log"
Customlog "Logs/my.work10bug.com-access.log" common
<directory/>
Options FollowSymLinks
AllowOverride All
Order Allow,deny
Indexoptions Charset=utf-8
Allow from all
</Directory>
</VirtualHost>

In the httpd.conf file:

ServerName localhost:80

#
# Deny access to the entirety of your server ' s filesystem. You must
# explicitly permit access to Web content directories in other
# <Directory> blocks below.
#
<directory/>
Options All
AllowOverride All
</Directory>

------------------

DocumentRoot "D:/xampp/htdocs"
<directory "D:/xampp/htdocs" >
#
# Possible values for the Options directive is "None", "all",
# or any combination of:
# Indexes includes followsymlinks symlinksifownermatch execcgi multiviews
#
# Note that "MultiViews" must is named *explicitly*---"Options all"
# doesn ' t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks includes execcgi

#
# AllowOverride Controls What directives is placed in. htaccess files.
# It can be ' all ', ' None ', or any combination of the keywords:
# allowoverride FileInfo authconfig Limit
#
AllowOverride All

#
# Controls who can get stuff from the this server.
#
Require all granted
</Directory>

-----------------------

#
# "D:/xampp/cgi-bin" should is changed to whatever your scriptaliased
# CGI Directory exists, if you had that configured.
#
<directory "D:/xampp/cgi-bin" >
AllowOverride All
Options FollowSymLinks
Require all granted
</Directory>

Apache configuration file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.