httpd.conf

Apache + Etags -> returns 200 and send content instead of 304

旧街凉风 提交于 2019-12-10 09:33:38
问题 I have this Apache conf that uses Etags: <VirtualHost *:8080> ServerName xxx.co SSLEngine On SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM SSLCertificateFile /etc/apache2/xxx.crt SSLCertificateKeyFile /etc/apache2/xxx.key SSLCertificateChainFile /etc/apache2/sub.class1.server.ca.pem SSLCACertificateFile /etc/apache2/ca.pem SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown ServerAdmin edward@xxx.co DocumentRoot /home/ubuntu/xxx-react/build/

Apache permission denied

那年仲夏 提交于 2019-12-08 23:37:34
问题 I've just installed a new Apache 2.4.2 with Php fast cgi build on windows. Then I modified the httpd.conf adding the following: LoadModule fcgid_module modules/mod_fcgid.so FcgidInitialEnv PHPRC "C:/SITE/PHP" AddHandler fcgid-script .php FcgidWrapper "C:/SITE/PHP/php-cgi.exe" .php DocumentRoot "C:/SITE/localhost/www" <Directory "C:/SITE/localhost/www"> Order allow,deny Allow from all </Directory> However when I try to open my site, it says: Forbidden You don't have permission to access / on

Invalid controller specified() - Zend Framework

会有一股神秘感。 提交于 2019-12-08 05:52:32
问题 I have followed the following documentation and I am having problems. I access the url as localhost/epos and the index page works fine. but if i do localhost/epos/pgeline2d i get error An error occurred Page not found Exception information: Message: Invalid controller specified (epos) Stack trace: #0 /opt/eposdatatransfer/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /opt

Apache VirtualDocumentRoot redirect non-existing domains

て烟熏妆下的殇ゞ 提交于 2019-12-08 05:25:29
I'am using VirtualDocumentRoot to have multiple domains and subdomains. Everything goes well until someone tries to reach my server by IP or an non-existing domain. For example 10.10.10.10 wich results into an 404 Not Found error. Maybe someone out there can help me find an solution to redirect non-existing domains or IP to my main domain www.example.com? Let me be clear: non-existing subdomains are being redirected but non-existing domains are not. HTTPD.CONF: <VirtualHost *:80> ServerName default ServerAlias * #www.example.com == /httpdocs/example.com/www/ VirtualDocumentRoot /httpdocs/%-2.0

Apache VirtualHost: How to ServerName a port different from 80

為{幸葍}努か 提交于 2019-12-08 04:28:23
问题 I use Xampp and I want test.localhost to go to 127.0.0.1:81 . In httpd.conf I wrote: Listen 127.0.0.1:81 NameVirtualHost 127.0.0.1:81 <VirtualHost 127.0.0.1:81> ServerName test.localhost DocumentRoot "d:\_projects\projectx" DirectoryIndex index.php </VirtualHost> and to windows\system32\drivers\etc\hosts I added: 127.0.0.1 test.localhost But http://test.localhost now brings me to 127.0.0.1:80 . How do I make it go to 127.0.0.1:81 ? 回答1: As far as your browser is concerned, http://test

Sharing configuration between several VHosts

自闭症网瘾萝莉.ら 提交于 2019-12-08 04:23:49
问题 I'm managing a httpd installation with several sites running on it, each defined within it's own <VirtualHost> directive. There are several configuration variables (most of them from core as well as some php_flag / php_value ) that are exactly the same for several of the sites defined. I would like to be able to define a configuration set that will apply to several <VirtualHost> directives at the same time (to remove redundancy and make the server maintenance a little bit easier). I have

Invalid controller specified() - Zend Framework

你。 提交于 2019-12-08 02:42:27
I have followed the following documentation and I am having problems. I access the url as localhost/epos and the index page works fine. but if i do localhost/epos/pgeline2d i get error An error occurred Page not found Exception information: Message: Invalid controller specified (epos) Stack trace: #0 /opt/eposdatatransfer/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /opt/eposdatatransfer/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()

VirtualHost Same ServerName Different Directories

本小妞迷上赌 提交于 2019-12-07 15:39:52
问题 I have a running production website assigned to a host (redmine application). I need to add a new application to the same host as a sub-directory. This is the current virtualhost configuration for redmine application which runs at base folder of host. <VirtualHost *:80> ServerName redmine.hostname.com DocumentRoot "C:/BitNami/redmine-2.5.1-1/apps/redmine/htdocs/public/" RewriteEngine On RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA] ProxyPass / balancer://redminecluster

How to parse a .conf file in php

一世执手 提交于 2019-12-07 13:20:27
问题 Is there any special function to parse a .conf file in php like parse_ini_file() function? If not how can I achieve that? Thanks! EDIT : Conf's like httpd.conf(Apache). (I want to read and edit httpd.conf file) 回答1: No, there is no special function to parse httpd.conf, but a parser should be easy to write. For example, if you're only interested in the key-value settings, like ServerRoot /var/www , then this will do the trick: <?php define('HTTPD_CONF', '/tmp/httpd.conf'); $lines = file(HTTPD

Turning RewriteEngine on creates 403 error--how to turn on FollowSymLinks?

喜欢而已 提交于 2019-12-07 10:39:18
问题 I am working with the built-in Apache2 on OSX. I moved the document root to a folder on my desktop and made sure that _www and everyone have read access. It works fine and great, PHP works, everything works until I add a .htaccess with this line only: RewriteEngine on As soon as I do that, everything in the directory with the file is 403 Forbidden: Forbidden You don't have permission to access /dir/file.txt on this server. Apache logs show this error: [error] [client 127.0.0.1] Options