Articles of apache 2.2

从Server 2003迁移到Ubuntu + Apache的网页 – 可以吗?

我们有一个旧的服务器2003,运行IIS 6.0 ,我希望能够退役并转移到我们的主要托pipe平台(运行Ubuntu Lucid和Apache 2.2.14 ,使用php 5.3-ish )。 如果可能的话,我试图find一个解决scheme来覆盖旧的网站。 我可能试图在这里重新发明轮子,不确定。 该IIS上的网页是旧的。 很古老。 其中大部分是古代的,Geocities风格的HTML(不ASP.Net虽然)。 有些使用Frontpage扩展。 default.htm可能不会被解释为索引页面。 我们假设这不是问题,我们将代码更新的任务留给用户。 这些网站背后没有任何数据库。 假设我已经在Linux端创build了这个虚拟主机,那很简单。 如何导出和将应用程序池中的所有内容从Windows迁移到Linux环境? 有没有这样的应用程序,希望不是专有的? 谷歌search大多返回“不这样做”的结果,因为平台不是很兼容 – 但我想我正在寻找第二个意见。 还有一个工具可以做到这一点(Apache到IIS),必须有一些东西。 提前致谢。

代理nodejs站点不通过Apache中的HTTPS加载

我有一个节点服务器端口上运行,我使用Apache来代理传递给它。 我已经在虚拟主机上设置了SSL,HTTP工作正常,但HTTPS超时并且Connection Refused了Connection Refused configuration: <VirtualHost *:80> ServerAdmin [email protected] ServerName dl.test.co ProxyPass / http://localhost:8004/ ProxyPassReverse / http://localhost:8004/ </VirtualHost> <VirtualHost *:443> ServerAdmin [email protected] ServerName dl.test.co ProxyPass / http://localhost:8004/ ProxyPassReverse / http://localhost:8004/ SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM SSLCertificateFile /etc/apache2/ssl/ssl.crt SSLCertificateKeyFile /etc/apache2/ssl/ssl.key SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem </VirtualHost>

Apache2虚拟主机1文件的任何URL

我有一个Apache2虚拟主机设置为从任何URL(dns)接入访问,而不是我设置的访问。 基本上我想要任何访问这个来显示一个页面(index.html),但保持用户访问他们的URL在他们的地址栏。 例如 用户访问example.url.com/example.php?param=text 或者他们去anysubdomain.example.com/anything 或subdomain.anotherurl.com/ 那么他们将看到文件index.html但他们的地址栏仍然是example.url.com/example.php?param=text (或无论他们去了哪里) apache2ctl -S输出 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName VirtualHost configuration: wildcard NameVirtualHosts and default servers: *:80 is a NameVirtualHost default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1) Syntax OK 非常感谢帮助

范围请求在Apache或Java Servlet中超过10GB后超时

在我们的RHEL5 64位服务器上,服务大容量的10 + GB文件和字节范围请求似乎存在问题。 我注意到的问题是范围请求超过10GB(十千兆字节)标记的范围超时,而在此之前的文件中的任何一点的范围请求是快速的。 我一直在使用java servlet和apache HTTPD(2.2)在tomcat上进行testing,并且两者都失败 如果我设置了一个testing,在每个10GB的范围内执行curl范围请求,那么它在10GB(或者更准确地说,9.313231GB? $ curl -w '%{time_total}\n' –header 'Range: bytes=9999900000-10000000000' http://ourserver.com/bam/file.bam –fail –silent –show-error 22.840 curl: (56) Recv failure: Operation timed out 在这个范围请求总是失败。 文件中10GB之前的任何范围请求非常快,没有错误。 我猜在tomcat和apache中发生的事实让我怀疑它不是apache或tomcat的configuration问题,所以有什么线索可以发生什么? 脚本进行testing #!/bin/bash set -evx begin=9900000000 grab=100000 iter=100000 max=16000000000 url=$1 for i in `seq -f "%.0f" $begin $iter $max`; do i2=$(($i+$grab)) echo -en "$i\t$i2\t"; curl […]

Ubuntu + Apache不能在端口80上工作

我有一些问题与Apache(操作系统Ubuntu)。 由于某些原因apache不能在端口80上工作。 对于这个设置:etc / apache2 / ports.conf Listen 80 <IfModule ssl_module> Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule> 等/ apache2的/ 000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html </VirtualHost> netstat 。 我尝试连接“my_server_ip”或“my_server_ip:80”浏览器说“连接closures” 如果我改变端口为8080(例如),并尝试连接“my_server_ip:8080”它工作正常,我看到默认的apache页面。 设置:etc / apache2 / ports.conf Listen 8080 <IfModule ssl_module> Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule> 等/ apache2的/ 000-default.conf <VirtualHost *:8080> […]

如何通过代理服务器上的SOAP我拥有(configuration)?

我有一个名为http://SERVER-A.com的服务器,它向第三方地址发送SOAP请求。 另外我有另一台服务器叫做http://Server-B.com ,我想configuration为代理服务器 。 我想通过服务器B (代理我的请求)将我的SOAP请求从A发送到第三方服务器。 我也想代理SOAP请求只有当请求被代理 (从A到第三方/不是直接请求B )。 我已经configuration我的服务器B htaccess文件如下: RewriteEngine On RewriteCond %{HTTP_FORWARDED} . RewriteRule ^ – [P] ProxyPassReverse / %{HTTP_FORWARDED} 我的configuration是否正确? 我应该怎么做呢? 我知道我应该在SOAP请求中configuration我的代理主机和端口。( php客户端)我只能访问.htaccess文件。 我只想让服务器B充当一个中间件(就像正在发送SOAP请求的B ) 谢谢你的帮助。

apache分段错误解释gdb核心分析

我们在apache上有一个分段错误错误,它产生了一个核心文件。 以下是gdb的结果,但我需要一些帮助来解释它的含义。 核心文件由httpd.worker线程生成。 谢谢你的帮助。 (gdb) thread apply all bt full Thread 2 (Thread 0x7f650c6bd7e0 (LWP 16186)): #0 0x00007f650afa922d in pthread_join (threadid=140071382447872, thread_return=0x7fff888e34d8) at pthread_join.c:89 __ignore = -512 _tid = 16217 _buffer = {__routine = 0x7f650afa9100 <cleanup>, __arg = 0x7f64e8fe7d28, __canceltype = 5, __prev = 0x0} oldtype = 0 pd = 0x7f64e8fe7700 self = 0x7f650c6bd7e0 result […]

FTP自动化下载过程不工作在Windows上

我有我的脚本如下: <?xml version="1.0" encoding="UTF-8"?> <project name="Getting from FTP" default="info" basedir="."> <target name="info"> <property name="testfolder" value="My\Test\Folder\Path" /> <echo>Hello World – Welcome to Apache Ant!</echo> <echo>Java version: ${ant.java.version}</echo> <echo>Ant Version: ${ant.version}</echo> <echo>Base Dir: "${basedir}"</echo> <mkdir dir="${testfolder}\ant-test"/> <classpath> <fileset dir="${basedir}" includes="*.jar" /> </classpath> <ftp action="get" server="my.server.location.somewhere" userid="username" password="password" remotedir="/path/on/my/server" verbose="yes" > <fileset dir="${testfolder}\ant-test"> <include name="**\*" /> </fileset> </ftp> […]

如何在文件和子目录中启用Apache DIGEST Authentivation

我正在尝试许多不同的configuration,下面有很多教程和文档,如果不创build数千个.htaccess文件,我就无法获得authentication。 这是我的configuration: <VirtualHost *:443> DocumentRoot /home/user/www ServerName preprod.user.com <Directory /home/user/www> Options Indexes SymLinksIfOwnerMatch AllowOverride All AllowOverride FileInfo AuthConfig Limit Require all granted </Directory> SSLEngine on SSLCertificateFile /etc/ssl/private/preprod.user.com.crt SSLCertificateKeyFile /etc/ssl/private/preprod.user.com.key </VirtualHost> 在根目录下,我写了这个/home/user/www/.htaccess文件: AuthType DIGEST AuthName "preproduction" AuthDigestNonceLifetime 1 AuthDigestDomain "/home/user/www/" "https://preprod.user.com/" AuthDigestProvider file AuthUserFile "/web/auth/.digest_pw" Require valid-user 结果是: https://preprod.user.com/ asks for a password https://preprod.user.com/v1/ asks for […]

旋转性能

一个关于使用apache和mysql的专用web服务器(64GB内存)上的logrotation的问题。 在高负载时间(每时每刻在线2k用户),我们正在经历一个奇怪的行为。 举例来说,在16:30我们有1850个用户,低内存利用率(20GB),没有缓慢的查询logging,一切工作正常。 在16:50,日志旋转。 在16:53,服务器开始崩溃,无法处理用户。 页面加载变得非常慢,并且变得更糟,直到我们手动重新启动Apache。 因为我们在apc下,据我所知logrotation会导致apache重新加载,可能logrotation是性能下降的原因吗? 也许是因为清除apc的caching? 这里的logrotateconfiguration: /var/log/apache2/*.log { daily missingok rotate 52 compress delaycompress notifempty create 640 root adm sharedscripts postrotate /etc/init.d/apache2 reload > /dev/null endscript } 以及使用进程的顶级I / O —-total-cpu-usage—- -most-expensive- -dsk/total- —-most-expensive—- usr sys idl wai hiq siq| cpu process | read writ| block i/o process 3 0 97 0 […]