ClearFoundation Tracker - ClearOS
View Issue Details
0019201ClearOSapp-web-server - Web Serverpublic2018-02-21 02:462021-01-18 04:24
NickH 
 
normalminoralways
closedsuspended 
7.4.0 
 
0019201: CGI option points to flexshares and not /var/www/virtual
If you enable CGI in the Webconfig the flex-80 file points the ScriptAlias to settings to the flexshare location rather than the location under /var/www/virtual. Although they are synonymous (when the bind mounts work) it is inconsistent. Example from flex-80:

ScriptAlias /flexshare/www.example.com/cgi-bin/ /var/flexshare/shares/www.example.com/cgi-bin/
<VirtualHost *:80>
    ServerName www.example.com
    DocumentRoot /var/www/virtual/www.example.com
    ScriptAlias /cgi-bin/ /var/flexshare/shares/www.example.com/cgi-bin/
    ErrorLog /var/log/httpd/www.example.com_error_log
    CustomLog /var/log/httpd/www.example.com_access_log combined
</VirtualHost>

<Directory /var/www/virtual/www.example.com/cgi-bin>
    Options +ExecCGI
    Require all granted
</Directory>

The Directory line is as I would have expected, the two ScriptAlias lines are not as they point to the flexshare version of the file location, /var/flexshare/shares/www.example.com/cgi-bin/ instead of /var/www/virtual/www.example.com/cgi-bin
Enable the CGI option for your web site
No tags attached.
related to 0022561closed dloper CGI scripts won't run from /var/flexshare/share paths 
Issue History
2018-02-21 02:47NickHNew Issue
2018-02-21 09:26user2Statusnew => acknowledged
2018-12-17 02:24NickHRelationship addedrelated to 0022561
2021-01-18 04:24NickHNote Added: 0015171
2021-01-18 04:24NickHStatusacknowledged => closed
2021-01-18 04:24NickHResolutionopen => suspended

Notes
(0015171)
NickH   
2021-01-18 04:24   
Migrated to https://gitlab.com/clearos/clearfoundation/app-web-server/-/issues/1 [^]