• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue Additional Apache directives doesn't work

asukita

New Pleskian
Server operating system version
AlmaLinux 8.9
Plesk version and microupdate number
Plesk Obsidian Web Pro Edition 18.0.60 Update #1
Hi,

As the title says when I try to use some directive in my vhost this one doesn't work, unlike when I write it in the main file.

main file would be... /var/www/vhosts/system/domain/conf/httpd.conf
vhost files would be... /var/www/vhosts/system/domain/conf/vhost_ssl.conf and vhost.conf (I use ssl though)

I noticed that main file has no "include" for those files, I don't know if this could be the problem.

When I intentionally mistype a directive I can't pass the sudo apachectl configtest, the total opposite than in the vhost, where I can write whatever I want and pass this command without problem.

Also, the vhost files are in the proper path because Plesk shows me the directive on the webpage

Captura de pantalla 2024-05-05 a las 11.38.10.png

So, what is wrong here? o_O

Thanks in advance
 
Do you mean that when you add any directive to the Additional Apache directives it doesn't get saved to the vhost_ssl.conf file?

There also should be includes the the vhostl.conf and vhost_ssl.conf files in the domains httpd.conf file. Are you using customized Virtual Hosts templates that exclude those includes?
 
Back
Top