我有一个网站部署,使用kohana和URL重写,使URL更加宁静。 这工作正常。 我还将Moodle安装在同一台服务器的子目录中,并为此目录定义了一个子域。 所以Moodle安装在名为students的目录下,子域名为students.example.com。 这也工作正常。 我现在正在尝试安装我只需要在子域上的SSL证书。 我有一个Comodo通配符证书,所以它应该能够与子域一起工作。 当我使用https://example.com它工作正常,所以我可以看到SSL证书有效。 但是,当我尝试https://students.example.com它redirect到主站点。 http://students.example.com虽然工作正常。 适用于kohana重写规则的.htaccess文件是: # Use PHP5.4 Single php.ini as default AddHandler application/x-httpd-php54s .php # Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase / # Protect hidden files from being viewed <Files .*> Order Deny,Allow Deny From All </Files> # Protect application and system files from […]
我正在开发在JBOSS上运行的Java EE Web应用程序。 我希望用户使用智能卡的X.509身份validation证书在我的networking应用程序中进行身份validation,以访问网站内容。 我决定使用mod_proxy使用Apache HTTP服务器,以便能够使用Apache的mod_ssl。 我想知道是否mod_proxy和mod_proxy_http是一样的? 如果不是有什么区别?
我试图在一台apache2服务器上设置两个网站。 一个是主站点,另一个是云服务器 第一个是在000-default.conf中定义的: <VirtualHost *:80> ServerName www.example.com ServerAlias example.com ServerAdmin webmaster@localhost DocumentRoot /var/www-sites/main/ <Directory /var/www-sites/main/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Require all granted </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, […]
我们正在逐渐将客户网站迁移到一个新的系统和域名。 与此同时,我们需要两个站点都能正常运行 – 但是可以共享同一个域的多个位。 我现在已经把主域名指向了新的服务器 – www.newserver.org 在这台服务器上,我需要Apache将任何不在允许文件夹列表中的请求redirect到旧服务器 – 现在生活在:www.oldserver.org(保留域后的path)。 我还需要新的服务器访问时通过它的IP地址访问,而无需redirect。 我最好的尝试在Apacheconfiguration: DocumentRoot /var/www RewriteEngine on RewriteCond %{REQUEST_URI} !^/landing/ RewriteCond %{REQUEST_URI} !^/admin/ RewriteCond %{REQUEST_URI} !^/user/ RewriteCond %{REQUEST_URI} !^/sites/ RewriteCond %{REQUEST_URI} !^/scripts/ RewriteCond %{HTTP_HOST} ^www.newserver.org$ RewriteRule ^(.*) http://www.oldserver.org/$1 [NC,R=301,L] 任何人都可以协助正确的RewriteCond&订购? 此刻,所有请求 – 即使是指定的文件夹都是redirect的。
我的操作系统是Linux Mint 17.我的目标是允许读取仅用于root和apache的/ mnt / wwwdata。 我试图在目录/ mnt / wwwdata中设置apache文档根目录,对于包含用户“root”和“www-data”的组wwwadmins,权限为0770。 Apache是从源代码编译的,没有安装apt-get。 它放在/ usr / local / apache2中。 在这个时候,apache不能访问这个目录下的php文件。 当我设置0777,它有帮助。 我怀疑,我编译的Apache是另一个用户,比'www-data'。 我怎么能知道Apache的名字?
我在CentOS 6.5和Apache 2.2.15上运行Prestashop安装。 前段时间,我更新了Apache,并失去了通过Prestashop后台上传产品图像以及其他问题(如Prestashop安装中的caching文件夹的权限问题)的能力。 我的Prestashop安装文件夹和文件被设置为user1:psacln,我想我的Apache被设置为在这个用户和组运行之前,我更新它。 但是,现在,Apache被设置为使用apache:apache运行,并且我认为这是导致问题的原因。 但是,当我更改Apache作为user1运行:psacln我在/ var / log / httpd / error_log中得到这些错误: [error] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /var/run/mod_fcgid/sock/20507.202 [warn] (13)Permission denied: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error 我试着设置chown -R user1:psacln / var / run / mod_fcgid,但在此之后,当连接到站点时,出现内部服务器错误500。 因此,我想我真正的问题是,除了httpd.conf(用户,组)之外,我还需要在哪里进行更改才能使用FastCGI正确地打勾?
您好,我尝试在Apache代理中设置标头JSON。 我需要这个在网站上testinglogin。 下面我把我的Apacheconfiguration。 <VirtualHost *:80> ServerName zx.xxxxxxx.xxxxxx.fr ServerAdmin [email protected] AddDefaultCharset utf-8 AddType 'application/json; charset=UTF-8' .json SSLProxyEngine On RequestHeader set Host "xxxxxxx.xxxxxx.fr" ProxyPreserveHost On ProxyPass / https://11.111.111.111/ ProxyPassReverse / https://11.111.111.111/ LogLevel warn ErrorLog /var/log/httpd/zx.xxxxxxx.xxxxxx.fr.log CustomLog /var/log/httpd/zx.xxxxxxx.xxxxxx.fr.log combined </VirtualHost> 请给我一些build议,如果我做错了。 问候Mick
我试图禁用某些文件的Apache身份validation,但我似乎没有得到正确的。 这是我在.htaccess上的: AuthType Basic AuthName "Authentication Required" AuthUserFile "/home/site/.htpasswd" Require valid-user <FilesMatch "\.(ico|gif|jpg|png|mp3|js|css|json|xml)$"> Satisfy any Allow from all </FilesMatch> 有任何想法吗?
我有一个网站服务器运行一个网站。 因为我只有一台服务器,所以我想安装Jenkins。 我遵循了Jenkin网站的安装说明 ,但遇到的第一个问题是,当我使用sudo service jenkins start , 它将整个服务器冻结 30秒到1分钟。 有时会在停止服务后再次冻结。 然后,我按照指示在Apache后面运行Jenkins 。 即使我的httpdconfiguration使用HTTPS,我必须遵循“mod_proxy”指令而不是“mod_proxy与HTTPS”,所以我可以访问http://my-domain/jenkins然而,似乎我的服务器定期(和随机!)冻结, 使网站和直接服务器访问不可能约1分钟(当我开始jenkins的服务)。 Jenkinsconfiguration(在/etc/sysconfig/jenkins )最重要的variables是: JENKINS_USER="jenkins" JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true" JENKINS_PORT="8081" JENKINS_LISTEN_ADDRESS="127.0.0.1" JENKINS_HTTPS_PORT="" JENKINS_HTTPS_KEYSTORE="" JENKINS_HTTPS_LISTEN_ADDRESS="" JENKINS_ARGS="–prefix=/jenkins" 这是我的httpdconfiguration(在/etc/httpd/sites-enabled ): ProxyPass /jenkins http://localhost:8081/jenkins nocanon ProxyPassReverse /jenkins http://localhost:8081/jenkins ProxyRequests Off # Local reverse proxy authorization override # Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu) <Proxy […]
我试图在我的CentOS 6.5服务器上安装Apache 2.2,并且遇到问题。 我在这里遵循这个指南: http : //www.howtoforge.com/how-to-set-up-webdav-with-apache2-on-centos-5.5 我已validation所需的mod_dav.so和mod_dav_fs.so模块已启用。 我创build了我的虚拟主机条目,如下所示: <VirtualHost 11.22.33.44:80> SuexecUserGroup "#500" "#500" ServerName dav.naijastories.com DocumentRoot /home/myuser/public_html/ ScriptAlias /cgi-bin /home/myuser/public_html/cgi-bin DirectoryIndex index.html index.htm index.php index.php4 index.php5 <Directory /home/myuser/public_html/> Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/myuser/fcgi-bin/php5.fcgi .php FCGIWrapper /home/myuser/fcgi-bin/php5.fcgi .php5 </Directory> Alias /webdav […]