Welcome Guest, Not a member yet? Register   Sign In
question about httpd.config
#1

Question about httpd.config. When your establishing your DocumentRoot path and your Directory path. Are allowed to uncomment multiple path or are you only restricted to one path at a time? I have an example below

would I be allowed to uncomment multiple paths, or only the path that I'm currently working on?
Code:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
#DocumentRoot "C:/xampp/htdocs"
#DocumentRoot "C:/xampp/htdocs/codeigniter/public"
#DocumentRoot "C:/xampp/htdocs/codeigniter/public2"
#DocumentRoot "C:/xampp/htdocs/codeigniter/public3"
DocumentRoot "C:/xampp/htdocs/codeigniter/public4"
#DocumentRoot "C:/xampp/htdocs/codeigniter/public5"
#DocumentRoot "C:/xampp/htdocs/codeigniter/public6"

#<Directory "C:/xampp/htdocs">
#<Directory "C:/xampp/htdocs/codeigniter/public">
#<Directory "C:/xampp/htdocs/codeigniter/public2">
#<Directory "C:/xampp/htdocs/codeigniter/public3">
<Directory "C:/xampp/htdocs/codeigniter/public4">
#<Directory "C:/xampp/htdocs/codeigniter/public5">
#<Directory "C:/xampp/htdocs/codeigniter/public6">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #  Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be 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 may be 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 this server.
    #
    Require all granted
</Directory>
Reply
#2

If you need all of those paths I would start using VHOSTS, ( Virtual Hosts ).
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Informative post, thanks for sharing.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB