我是新安装/configurationApache2和PHP。 这是我迄今为止所做的,以及我目前的服务器设置。 我对Solaris / Sun OS非常熟悉。 Solaris 10,PHP版本是5.3.26,Apache版本是2.2.22,MySQL版本是5.0.67。 我已经能够安装/configurationApache和MySQL; 网站按我的意愿工作; 创build数据库并开始写入SQL。 这些工作正常。 我安装了PHP,它只能通过命令行工作。 也就是说,要执行: hello.php <?php echo "Hello World\n" ?> 我用: % php hello.php …我得到了“Hello World”的预期回报(减去引号)。 在httpd.conf (在/etc/apache2 )中,我添加了: DirectoryIndex index.html index.php index.html.var AddType application/x-httd-php .php AddHandler php5-script .php .html .htm. 引起我惊诧的一行是LoadModule php5_module modules/libphp5.so (我也见过使用libexec副模块的例子)。 如果LoadModule行没有在httpd.conf文件中注释掉,apache会进入维护模式。 我的LD_LIBRARY_PATH指向/usr/local/lib:/usr/lib:/usr/local/libexec:/usr/local/php/lib:/usr/sfw/lib:/usr/sfw/lib/mysql 。 PHP需要怎样处理浏览器?
我在Ruby on Rails 3.2.8中有一个应用程序,我在端口3037上使用passenger-Nginx作为Web服务器,使用ProxyPass和ProxyPassReverse与Apache2和SSL连接。 我的问题是,加载铬或Firefox时,CSS和JavaScript文件不加载。 我有一个来自Register.com的SSL证书,我用这种方式在VirtualHost中configuration了它: 这是在80端口的VirtualHost中 ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /home/mydomain/ PassengerEnabled off ProxyPass / http://0.0.0.0:3037/ ProxyPassReverse / http://0.0.0.0:3037/ RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteCond %{REQUEST_URI} !(\.js|\.css)$ [NC] RewriteRule \.(gif|jpg|jpeg|jpe|png|css|js)$ – [S=1] RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] 这是在我的文件从SSL端口443: <Proxy *> Allow from localhost </Proxy> ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /home/mydomain/ ErrorLog /var/www/logs/www.mydomain.com/ssl_error_log.log CustomLog /var/www/logs/www.mydomain.com/ssl_access_log.log […]
我正在Ubuntu 11.04上运行Apache2 Web服务器(服务器版本:Apache / 2.2.17(Ubuntu))。 我有一个问题,长时间运行的下载将在一段时间后失败。 我有客户与慢连接,这是我第一次发现这个问题。 如果我通过快速连接下载文件,它将正常工作。 在testing中,我一直在下载一个3GB的文件,同时限制我的wget到500K,并得到一致的失败。 但是,传送的时间或数据总是不同的。 我有两个不同的目录指令。 文件将从一个下载罚款,但不是其他。 两者之间的主要区别在于NFS是一个XSendFile指令。 一切工作正常,“下载”,但“vol1”有问题。 <Directory "download"> PassengerEnabled off Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <Directory "vol1"> PassengerEnabled off Options -Indexes MultiViews AllowOverride None Order allow,deny Allow from all XSendFile on XSendFileAllowAbove on </Directory> 这里是从客户端使用wget的失败: HTTP request sent, awaiting response… 200 […]
我完全搞错了阿帕奇听的东西。 我现在的问题是。 当我让它听 NameVirtualHost *:80 Listen 127.0.0.1:80 Listen 192.168.1.23:80 它可以通过networking访问吗? 因为我的互联网连接到192.168.1.23:80
我们已经inheritance了一个旧的Web应用程序,需要扩展一些日志loggingfunction以达到合规目的。 不幸的是,我们不能改变应用程序。 应用程序收到XML POST请求。 我们需要捕获几个特定的XML值并将它们logging在一个单独的文件中。 所以这涉及到XMLparsing和一些自定义代码。 我们正在考虑在服务器前放置一种代理。 是否有代理,允许自定义请求身体处理没有低级别的编程? 或者IDS更适合这个目的?
如果在主目录中不存在index.html或index.php文件,是否可以将(通过Rewrite Cond?)用户redirect到另一个URL以获得帮助? 感谢Greg
我在这个网站和其他网站上多次看到这个问题,但是他们中的任何一个都为我提供了一个有效的解决scheme。 我有一个运行Apache 2.2.22的Ubuntu服务器12.04。 httpstream量正常运行,但SSLstream量正在缓慢复苏。 加载一个网站,我可以看到图像加载,而在http版本,他们几乎立即。 我运行一些testing: HTTP: ab -n 1000 -c 250 http://IP/test.jpeg This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking IP (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests […]
在使用数据库用户pipe理器时,我无法login到Apache FTP服务器上:在input用户名和密码时,出现以下错误日志文件: [ INFO] 2013-02-07 20:51:07,779 [] [0:0:0:0:0:0:0:1] RECEIVED: USER piyush [ INFO] 2013-02-07 20:51:07,781 [piyush] [0:0:0:0:0:0:0:1] SENT: 331 User name okay, need password for piyush. [ INFO] 2013-02-07 20:51:07,784 [piyush] [0:0:0:0:0:0:0:1] RECEIVED: PASS ***** [ WARN] 2013-02-07 20:51:07,785 [piyush] [0:0:0:0:0:0:0:1] User failed to log in [ WARN] 2013-02-07 20:51:08,285 [piyush] [0:0:0:0:0:0:0:1] Login failure – […]
我想访问domain.com/api/(.*)而不是domain.com/public/api/(.*) 目录结构: domain.com __folder1 __folder2 __public ____api ______.htaccess2 ____afolder1 ____afolder2 ____index.html __folder3 __file1 __file2 __.htaccess1 .htaccess1 RewriteEngine on SetEnv APPLICATION_ENV production RewriteRule ^$ /public/ [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/public/ RewriteCond %{REQUEST_URI} !^/api/ RewriteRule ^(.*)$ /public/$1 [L] .htaccess2 RewriteEngine on SetEnv APPLICATION_ENV production RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ […]
我的目标是相当典型的,所以我希望别人可能以前实施过类似的设置。 外部客户端Foo将连接到Bar,Bar是一个具有适当防火墙例外的服务器,因此可见到应用服务器Baz(192.168.1.5)所在的内部networking192.168.1.0/24。 Baz通过JNLP提供了一个Java应用程序。 当前设置 xinetd在端口8080上的Bar上运行,通过防火墙redirect到启动JNLP的内部系统Baz端口443,并且被反馈到客户端Foo,在那里Java应用程序踢得很好,一切都很好。 Foo客户端在JNLP文件上的交互确实使用了由xinetd“路由”的同一个连接,所以没有使用这个设置的不对称路由或者任何讨厌的事情。 只是没有保护的应用程序,这是不可取的。 xinetdconfiguration: service baz-app { disable = no type = UNLISTED flag = IPv4 socket_type = stream wait = no user = root port = 80 #Not functional yet. #only_from = 127.0.0.1 redirect = 192.168.1.5 443 log_on_failure += USERID } 期望的设置 一些身份validation来保护应用程序。 我们已经成功实施了以下内容: 使用Kerberos主体的Apache + mod_ssl + mod_proxy + […]