Then, create corresponding symbolic links in "conf-enabled". Putting the line "Include conf. The next update is likely going replace this file and you will have to edit it again. On my Debian 8. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Apache 2. Ask Question. Asked 9 years, 8 months ago. Active 3 years, 2 months ago. Viewed 15k times. Improve this question. TheCleaner In order to have two overlapping URLs one has to consider the order in which certain sections or directives are evaluated. The same is true for the ProxyPass directives:.
But see the section below on configuration merging to find out how using regex sections will change how directives are applied. A non-regex wildcard section that changes the configuration of all user directories could look as follows:. Regular expressions containing named groups and backreferences are added to the environment with the corresponding name in uppercase. Choosing between filesystem containers and webspace containers is actually quite easy.
This is because many different webspace locations URLs could map to the same filesystem location, allowing your restrictions to be circumvented. For example, consider the following configuration:.
But what if you are on a case-insensitive filesystem? An exception is filesystem links. The same directory can be placed in more than one part of the filesystem using symbolic links. Therefore, for the highest level of security, symbolic links should be disabled with the appropriate Options directive. If you are, perhaps, thinking that none of this applies to you because you use a case-sensitive filesystem, remember that there are many other ways to map multiple webspace locations to the same filesystem location.
Therefore you should always use the filesystem containers when you can. There is, however, one exception to this rule. Some section types can be nested inside other section types.
The regex counterparts of the named section behave identically. This is useful when serving multiple hosts from the same machine with a different configuration for each. For more information, see the Virtual Host Documentation. For example, the following configuration will allow only a subset of clients to access the www.
To find out what directives are allowed in what types of configuration sections, check the Context of the directive. There are some exceptions, however:. The configuration sections are applied in a very particular order. Since this can have important effects on how configuration directives are interpreted, it is important to understand how this works. Apache uses configuration files to change its behavior. The primary way of configuring Apache is by modifying the main configuration file, usually located at:.
This file can also be named httpd. You can also configure Apache without even touching the root configuration. If the feature is enabled, Apache attempts to read a file named. Your site is bundled with many other smaller sites and ran off one big server, which cuts down on hosting costs significantly.
0コメント