- 论坛徽章:
- 0
|
WAPM控制中心(Beta1) 公开测试(Apache/MySQL/Tomcat统一控制)
我按照虚拟主机127.0.0.1配置了我的域名
365xz.com
1.先在d:/usr/local/www/data/建立了一个文件夹365xz;
2.然后修改了d:/usr/local/etc/Apache2/下面的vhost.conf文件;
如- NameVirtualHost *:80
- #
- # VirtualHost example:
- # Almost any Apache directive may go into a VirtualHost container.
- # The first VirtualHost section is used for requests without a known
- # server name.
- #
- <VirtualHost *:80>;
- ServerAdmin webmaster@localhost
- DocumentRoot /usr/local/Apache2/htdocs/
- ServerName localhost
- ErrorLog logs/localhost-error_log
- CustomLog logs/localhost-access_log combined
- DirectoryIndex index.html.zh-cn.gb2312 index.htm index.html index.php index.cgi index.pl
- DefaultLanguage zh-CN
- AddDefaultCharset GB2312
- <Directory "/usr/local/Apache2/htdocs/">;
- Options FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>;
- ScriptAlias /cgi-bin/ "/usr/local/Apache2/cgi-bin/"
- <Directory "/usr/local/Apache2/cgi-bin/">;
- AllowOverride None
- Options None
- Order allow,deny
- Allow from all
- </Directory>;
- </VirtualHost>;
- <VirtualHost *:80>;
- ServerAdmin webmaster@127.0.0.1
- DocumentRoot /usr/local/www/data/
- ServerName 127.0.0.1
- ErrorLog logs/127.0.0.1-error_log
- CustomLog logs/127.0.0.1-access_log combined
- DirectoryIndex index.htm index.html index.php index.cgi index.pl
- DefaultLanguage zh-CN
- AddDefaultCharset GB2312
- <Directory "/usr/local/www/data/">;
- Options FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>;
- ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
- <Directory "/usr/local/www/cgi-bin/">;
- AllowOverride None
- Options None
- Order allow,deny
- Allow from all
- </Directory>;
- php_admin_flag engine on
- php_admin_flag safe_mode off
- php_admin_value open_basedir none
- php_admin_value open_basedir "/usr/local/www/data;/usr/local/tmp/php"
- <Location ~ "/*.jsp|/*/servlet/*">;
- JkUriSet worker ajp13:localhost:8009
- </Location>;
- <Location />;
- MaxConnPerIP 10
- # exempting images from the connection limit is often a good
- # idea if your web page has lots of inline images, since these
- # pages often generate a flurry of concurrent image requests
- NoIPLimit image/*
- </Location>;
- <Location />;
- MaxConnPerIP 1
- # In this case, all MIME types other than audio/mpeg and video*
- # are exempt from the limit check
- OnlyIPLimit text/html
- </Location>;
- </VirtualHost>;
- <VirtualHost *:80>;
- ServerAdmin webmaster@365xz.com
- DocumentRoot /usr/local/www/data/365xz
- ServerName 365xz.com
- ErrorLog logs/365xz.com-error_log
- CustomLog logs/365xz.com-access_log combined
- DirectoryIndex index.htm index.html index.php index.cgi index.pl
- DefaultLanguage zh-CN
- AddDefaultCharset GB2312
- <Directory "/usr/local/www/data/365xz/">;
- Options FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- </Directory>;
- ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"
- <Directory "/usr/local/www/cgi-bin/">;
- AllowOverride None
- Options None
- Order allow,deny
- Allow from all
- </Directory>;
- php_admin_flag engine on
- php_admin_flag safe_mode off
- php_admin_value open_basedir none
- php_admin_value open_basedir "/usr/local/www/data/365xz;/usr/local/tmp/php"
- <Location ~ "/*.jsp|/*/servlet/*">;
- JkUriSet worker ajp13:localhost:8009
- </Location>;
- <Location />;
- MaxConnPerIP 10
- # exempting images from the connection limit is often a good
- # idea if your web page has lots of inline images, since these
- # pages often generate a flurry of concurrent image requests
- NoIPLimit image/*
- </Location>;
- <Location />;
- MaxConnPerIP 1
- # In this case, all MIME types other than audio/mpeg and video*
- # are exempt from the limit check
- OnlyIPLimit text/html
- </Location>;
- </VirtualHost>;
复制代码
3.重启apache,在365xz.com所在的网页目录里面放置了两个文件,phpinfo.php;jspinfo.jsp
4.前者可以,后者不行啦!
- Internal Server Error
- The server encountered an internal error or misconfiguration and was unable to complete your request.
- Please contact the server administrator, webmaster@365xz.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
- More information about this error may be available in the server error log.
- --------------------------------------------------------------------------------
- WAPM/2.0.52 (WAPM) PHP/4.3.9 mod_ssl/2.0.52 OpenSSL/0.9.7e mod_jk2/2.0.4 Server at 365xz.com Port 80
复制代码 |
|