Проблемы с файлами конфигурации Apache для виртуальных хостов ⇐ Apache
-
Anonymous
Проблемы с файлами конфигурации Apache для виртуальных хостов
I seem to be getting into a issue with configuration files for virtualhosts with apache. When I copy them to the conf.d directory, they read in fine and work fine. I setup a a2ensite and a2dissite script which makes a symlink to the configuration files in sites-available to the sites-enabled directory.
However.. when I goto run httpd, it doesn't seem to want to read them. Only until they are copied to the conf.d directory does apache seem to see them and load them.
I included the
IncludeOptional sites-enabled/*.conf
in the httpd.conf conf file in /etc/httpd/conf/
I even checked the sexlinux security setting for that directory . unconfined_u:object_r:httpd_config_t:s0 sites-enabled
I am kind of stuck as to why apache doesn't seem to want to read in and see the config files in sites-enabled when I have them copied there. It is baffling me. Its got to be something simple I am missing.
Источник: https://stackoverflow.com/questions/780 ... tual-hosts
I seem to be getting into a issue with configuration files for virtualhosts with apache. When I copy them to the conf.d directory, they read in fine and work fine. I setup a a2ensite and a2dissite script which makes a symlink to the configuration files in sites-available to the sites-enabled directory.
However.. when I goto run httpd, it doesn't seem to want to read them. Only until they are copied to the conf.d directory does apache seem to see them and load them.
I included the
IncludeOptional sites-enabled/*.conf
in the httpd.conf conf file in /etc/httpd/conf/
I even checked the sexlinux security setting for that directory . unconfined_u:object_r:httpd_config_t:s0 sites-enabled
I am kind of stuck as to why apache doesn't seem to want to read in and see the config files in sites-enabled when I have them copied there. It is baffling me. Its got to be something simple I am missing.
Источник: https://stackoverflow.com/questions/780 ... tual-hosts
Мобильная версия