• 关于

    php_zip

    的搜索结果

问题

如何安装 php 的zip模块

如何安装 php 的zip模块,详细方法。我按照下面方法安装:cd /usr/srcwget http://pecl.php.net/get/ziptar -zxvf zipcd zip-1.x.xphpize./configuremake...
奎因宅 2019-12-01 20:13:51 3583 浏览量 回答数 1

问题

MySQL大圆距离(Haversine公式)

我有一个工作的PHP脚本,该脚本获取经度和纬度值,然后将它们输入到MySQL查询中。我只想将其制作成MySQL。这是我当前的PHP代码: if ($distance != "Any...
保持可爱mmm 2020-05-08 11:09:04 0 浏览量 回答数 1

问题

未选择语言时如何获得错误消息?

我有一个网站,其功能是将字幕从一种语言翻译成另一种语言,翻译是使用Google小部件工具完成的,图像上标有红色:https : //ibb.co/LCWt6YV(如您在左...
几许相思几点泪 2019-12-29 19:36:59 0 浏览量 回答数 1

问题

请教php,pdo如何连接oracle数据库

php.ini ;extension=php_bz2.dll extension=php_curl.dll ;extension=php_dba.dll ;extension=php_dbase.dll extension=php_exif...
落地花开啦 2019-12-01 19:51:55 1722 浏览量 回答数 1

问题

OSS PHP SDK 更新发布

OSS PHP SDK主要升级的功能如下: 1.      修复了设置hostname的bug 2.      优化了内部的Exception处理 3.      支持三级域名,如bucket.storage.a...
newegg11 2019-12-01 20:17:20 8918 浏览量 回答数 4

回答

Laravel是一套简洁、优雅的PHP Web开发框架。本文档将演示如何使用Laravel创建一个应用和添加MySQL数据库,并将其部署到Web+上。 前提条件 设置PHP开发环境。 注意 使用Laravel框架开发应用需要PHP 5.5.9或更高版本。 步骤一:创建应用 执行以下命令使用Composer工具来创建一个名为webplusdemo的项目,该过程可能需要几分钟。 composer create-project --prefer-dist laravel/laravel webplusdemo 执行以下命令使用PHP内置的开发服务器来运行此项目。 php artisan serve 打开浏览器输入下图地址访问应用。 步骤二:打包应用 进入项目目录,执行以下命令来激活Laravel内置的用户权限管理功能。 php artisan make:auth 修改.env文件中数据库相关的配置,使其关联Web+的相关环境变量。 DB_CONNECTION=mysql DB_HOST=${WP_RDS_CONNECTION_ADDRESS} DB_PORT=${WP_RDS_PORT} DB_DATABASE=${WP_RDS_DATABASE} DB_USERNAME=${WP_RDS_ACCOUNT_NAME} DB_PASSWORD=${WP_RDS_ACCOUNT_PASSWORD} 执行以下命令,安装所有的依赖。 composer install 使用zip命令打包项目下所有的内容生成压缩包webplusdemo.zip。 zip -r webplusdemo.zip ./ 步骤三:部署应用至Web+ 登录 Web+控制台,并在页面左上角选择所需地域。 在概览页最近更新的部署环境区域的右上角单击新建。 在应用基本信息页面选择技术栈类型为PHP,设置应用基本信息,设置完成后单击下一步。 在部署环境信息页面设置部署环境名称,部署包来源选择上传本地程序,上传您刚打包的webplusdemo.zip,设置部署包版本后单击下一步。 在配置页面选择预设配置为自定义模式。 展开云数据库RDS,按图所示配置云数据库类型为MySQL,并选择数据库版本、系列和类型等数据库基本信息。 展开生命周期挂钩,在PostPrepareApp编辑框内输入以下内容。 cd $APP_HOME && /usr/local/php/bin/php artisan migrate 在配置页面最下方单击完成创建。 在完成创建页面单击查看该应用或完成创建可进入应用详情页面。单击部署环境名称进入部署环境详情页面,然后单击公网访问地址右侧的链接进入应用首页。 更多信息 关于如何使用Web+来管理RDS,可参考云数据库RDS。 在控制台部署应用的详细配置步骤请参见部署应用。 使用CLI完成应用创建和部署的操作请参见在CLI快速部署应
1934890530796658 2020-03-23 14:25:49 0 浏览量 回答数 0

问题

云盾提示有后门

云盾提示有后门,但是如果删除这个文件就无法访问了!我把文件放出来,大家帮我看看怎么弄下,谢谢! <?phpheader('Content-Type: te...
巨浪 2019-12-01 21:23:57 9024 浏览量 回答数 3

问题

ossphp上传2m以上的文件都报错了求解

<b>Fatal error</b>:  Uncaught exception 'RequestCore_Exception' with message 'cURL resource: Res...
问@问 2019-12-01 21:01:57 7297 浏览量 回答数 3

问题

使用一键安装包提示这个错误是什么问题呢?

Complete! Starting vsftpd for vsftpd:                                [  OK  ] Changing password for user www. passwd: al...
高手爬地 2019-12-01 21:42:16 8456 浏览量 回答数 1

问题

php如何识别office 2007格式的文档,报错

php如何识别office 2007格式的文档,比如.docx .xlsx .pptx,我在网上找到,使用二进制来识别文件签名,但是office 2007的文档二进制前4位都是相同的,如何才能够区分开,各自属于哪类文档? 我上...
一枚小鲜肉帅哥 2020-06-20 20:23:32 0 浏览量 回答数 1

问题

通过phpMyAdmin管理MySQL4

云虚机主机 > 使用指南 > 数据库 > 通过phpMyAdmin管理MySQL4 通过phpMyAdmin管理MySQL4 phpMyAdmin是一个通过PHP语言来管理MySQL数据库的一个Web形式的管理工具,下面...
阿安安 2019-12-01 19:23:37 1179 浏览量 回答数 1

回答

使用了3个后端架构 Spring Boot 小程序云应用支持部署Spring Boot框架的小程序应用,确保您要部署的小程序应用满足云应用的要求。 Spring Boot框架应用配置要求 将使用Spring Boot技术栈的代码部署到云端服务器上时,会启动一个Nginx服务器和一个Spring Boot的应用服务器。部署Spring Boot框架的应用,需要满足以下要求: 软件包格式:JAR文件 JVM版本:Java 8及以下 端口:服务监听端口为8080 启动/停止:无特殊要求,标准Spring Boot方式 自定义Nginx配置测试 小程序云应用通过一层Nginx代理对外提供服务,可以通过在发布包中提供对应环境的Nginx配置文件来自定义Nginx配置。如果没有提供,或文件名称不符,则自动使用默认的配置。 您可以在resources下可以创建nginx目录,目录下的nginx-test.conf文件以及nginx-prod.conf文件将分别作为为测试环境和生产环境的nginx配置文件。 测试环境默认配置: worker_processes 1; error_log /home/admin/logs/nginx-error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name 127.0.0.1:8080; location / { proxy_pass http://127.0.0.1:8080; } } } 生产环境默认配置: worker_processes 1; error_log /home/admin/logs/nginx-error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 443; server_name 127.0.0.1:8080; ssl on; ssl_certificate /home/admin/sslcert/cert.pem; ssl_certificate_key /home/admin/sslcert/cert.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / { proxy_pass http://127.0.0.1:8080; } } server { listen 80; server_name 127.0.0.1:8080; rewrite ^(.*)$ https://$host$1 permanent; } } Node.js 小程序云应用支持部署Node.js框架的小程序应用,确保您要部署的小程序应用满足云应用的要求。 Node.js框架应用配置要求 部署Node.js框架的应用,需要满足以下要求: 软件包格式:.tar.gz文件,且源文件打包到.tar.gz文件的根目录 端口:服务监听端口为7001 启动/停止:在package.json文件中实现了start、stop命令 自定义Nginx配置测试 小程序云应用通过一层Nginx代理对外提供服务,可以通过在发布包中提供对应环境的Nginx配置文件来自定义Nginx配置。如果没有提供,或文件名称不符,则自动使用默认的配置。 您可以在上传的发布包的根目录创建一个conf目录,目录下的nginx-test.conf文件以及nginx-prod.conf文件将分别作为为测试环境和生产环境的nginx配置文件。 测试环境默认配置: user admin; worker_rlimit_nofile 100000; events { use epoll; worker_connections 20480; } error_log /home/admin/logs/nginx-error.log; http { default_type application/octet-stream; index index.html index.htm; access_log /home/admin/logs/nginx-access.log; upstream nodejs { server 127.0.0.1:7001; keepalive 10; } server { listen 80 default_server; server_name _; location / { proxy_pass http://nodejs; } } } 生产环境默认配置: user admin; worker_rlimit_nofile 100000; events { use epoll; worker_connections 20480; } error_log /home/admin/logs/nginx-error.log; http { default_type application/octet-stream; index index.html index.htm; access_log /home/admin/logs/nginx-access.log; upstream nodejs { server 127.0.0.1:7001; keepalive 10; } server { listen 80; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443 ssl default_server; ssl_certificate /home/admin/sslcert/cert.pem; ssl_certificate_key /home/admin/sslcert/cert.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; location / { proxy_pass http://nodejs; } } } PHP 小程序云应用支持部署PHP框架的小程序应用,确保您要部署的小程序应用满足云应用的要求。 PHP框架应用配置要求 部署PHP框架的应用,需要满足以下要求: 软件包格式:.zip文件,且源文件打包到.zip文件的根目录 监听端口:9000 默认的web server路径是/public。如需修改路径,例如改为/public_html,可在软件包根目录上创建包含如下内容的_buildpack文件: app_entry=public_html 自定义php扩展:扩展安装基于YUM命令,扩展必须在YUM仓库中存在。可在软件包根目录上创建包含如下内容的_buildpack文件(多个扩展用空格分隔): php_extensions=php-extesion-name1 php-extension-name2 扩展安装的日志保存在/home/admin/logs/ext-install-info.log和/home/admin/logs/ext-install-err.log中。 自定义Nginx配置测试 小程序云应用通过一层Nginx代理对外提供服务,可以通过在发布包中提供对应环境的Nginx配置文件来自定义Nginx配置。如果没有提供,或文件名称不符,则自动使用默认的配置。 您可以在上传的发布包的根目录创建一个nginx目录,目录下的nginx-test.conf文件以及nginx-prod.conf文件将分别作为为测试环境和生产环境的nginx配置文件。 测试环境默认配置: #user nginx; worker_processes 1; error_log /home/admin/logs/nginx-error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; sendfile on; keepalive_timeout 65; #gzip on; server { listen 80; server_name localhost; set $root_path /home/admin/app-run/app_entry; root $root_path; index index.php index.html; location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } location ~ \.php$ { try_files $uri =404; #root html; #fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } } 生产环境默认配置: worker_processes 1; error_log /home/admin/logs/nginx-error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; sendfile on; keepalive_timeout 65; server { listen 443; server_name localhost; set $root_path /home/admin/app-run/app_entry; root $root_path; index index.php index.html; ssl on; ssl_certificate /home/admin/sslcert/cert.pem; ssl_certificate_key /home/admin/sslcert/cert.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; } } location ~ \.php$ { try_files $uri =404; #root html; #fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } # 80 to 443 server { listen 80; server_name 127.0.0.1:8080; rewrite ^(.*)$ https://$host$1 permanent; } }
南霸天霸南北 2020-02-17 18:07:59 0 浏览量 回答数 0

回答

PHP SDK文档: https://help.aliyun.com/document_detail/32104.html?spm=5176.product8314910_31815.6.378.Yn03UD PHP下载的代码 function getObjectToLocalFile($ossClient, $bucket) {     $object = "a.zip";     $localfile = "a.zip;     $options = array(         OssClient::OSS_FILE_DOWNLOAD => $localfile,     );     try{         $ossClient->getObject($bucket, $object, $options);     } catch(OssException $e) {         printf(__FUNCTION__ . ": FAILED\n");         printf($e->getMessage() . "\n");         return;     }     print(__FUNCTION__ . ": OK, please check localfile: 'upload-test-object-name.txt'" . "\n"); } 用户点击另存为需要在Put的时候设置Content-Disposition", "attachment;filename=b.zip": 设置在options中 /**      * 上传内存中的内容      *      * @param string $bucket bucket名称      * @param string $object objcet名称      * @param string $content 上传的内容      * @param array $options      * @return null      */     public function putObject($bucket, $object, $content, $options = NULL)     {         $this->precheckCommon($bucket, $object, $options);         OssUtil::validateContent($content);         $options[self::OSS_CONTENT] = $content;         $options[self::OSS_BUCKET] = $bucket;         $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;         $options[self::OSS_OBJECT] = $object;         if (!isset($options[self::OSS_LENGTH])) {             $options[self::OSS_CONTENT_LENGTH] = strlen($options[self::OSS_CONTENT]);         } else {             $options[self::OSS_CONTENT_LENGTH] = $options[self::OSS_LENGTH];         }         if (!isset($options[self::OSS_CONTENT_TYPE])) {             $options[self::OSS_CONTENT_TYPE] = $this->getMimeType($object);         }         $response = $this->auth($options);         $result = new PutSetDeleteResult($response);         return $result->getData();     }
wood23 2019-12-02 02:35:21 0 浏览量 回答数 0

问题

更新  PHP SDK( v1125) 发布!!

大家好:        PHP SDK (V1125)更新发布 下载地址: http://storage.aliyun.com/aliyun_portal_storage/o...
newegg11 2019-12-01 20:10:26 13868 浏览量 回答数 8

回答

php官网(http://windows.php.net/downloads/releases/)下了个最新版本:php-5.3.3-Win32-VC6-x86.zip(不要下php-5.3.3-Win32-VC9-x86.zip,据说它是IIS服务器的安装版本,不过不知道为什么我在xp下的apache下用VC9安装成功了而在2003服务器上试了好几次都没装成功)。google并重新整理了一份关于升级要注意的事项,如下: 1. 解压php-5.3.3-Win32-VC9-x86.zip并重命名为PHP拷贝到C盘覆盖原来的低版本(位置无要求,我的是装在C盘),打开php目录(我的是C:/php)可以看到目录下有php.ini-development和php.ini-production两个文件,据说第一个是开发使用的配置文件,第二个是标准的生产环境的配置。 2. 复制一份php.ini-development到同目录下,并改名为php.ini使用文本工具打开,查找extension_dir,可以看到多个,选择On windows:下面的那个并去掉前面的分号修改为extension_dir = "C:/php/ext"(根据自己的目录结构配置),目的是找到和php.ini同目录下的ext文件夹中的扩展库。 3. 查找extension=php_,去掉以下几个扩展前面的分号(基本的几项)。 extension=php_curl.dll extension=php_gd2.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_pdo_mysql.dll extension=php_xmlrpc.dll 复制代码 4、查找short_open_tag = Off,改成On,让其支持短标签。 5. 复制php5ts.dll文件到WINDOWS/system32目录下。 6、重启apache,如果提示“PHP startup: Unable to load dynamic library...”之类的错误码,是因为找不到扩展所依赖的dll文件。所以为了能够使用这些扩展,除了要正确地配置extension_dir外,还得保证系统能够找到这些扩展所依赖的dll,解决的办法有两个: 1)将这些依赖的dll拷贝到c:/windows/system32下。 2)或者将PHP的安装目录添加到%PATH%中---没测试 据说两种方法都能很好地解决问题,这里我只用了第一种,如果选择第一种方法,还要知道需要的那些dll所依赖的dll文件,可从下面列出的找到一些: php_curl.dll CURL, Client URL library functions Requires:   libeay32.dll, ssleay32.dll (bundled) php_domxml.dll DOM XML functions PHP <= 4.2.0 requires: libxml2.dll (bundled) PHP >= 4.3.0 requires: iconv.dll (bundled) php_fdf.dll FDF: Forms Data Format functions. Requires: fdftk.dll gnu_gettext.dll (bundled), PHP >= 4.2.3 requires libintl-1.dll, php_iconv.dll ICONV characterset conversion Requires: iconv-1.3.dll php_ingres.dll Ingres II functions Requires: Ingres II libraries php_interbase.dll InterBase functions Requires: gds32.dll (bundled) php_java.dll Java functions PHP <= 4.0.6 requires: jvm.dll (bundled) php_ldap.dll LDAP functions PHP <= 4.2.0 requires libsasl.dll(bundled), PHP >= 4.3.0 requires libeay32.dll,ssleay32.dll (bundled) php_mcrypt.dll Mcrypt Encryption functions Requires: libmcrypt.dll php_mhash.dll Mhash functions PHP >= 4.3.0 requires: libmhash.dll   (bundled) php_mcrypt.dll Mcrypt Encryption functions Requires: libmcrypt.dll php_mhash.dll Mhash functions PHP >= 4.3.0 requires: libmhash.dll   (bundled) php_msql.dll mSQL functions Requires: msql.dll (bundled) php_mssql.dll MSSQL functions Requires: ntwdblib.dll (bundled) php_mysql.dll MySQL functions PHP >= 5.0.0, requires libmysql.dll   (bundled) php_mysqli.dll MySQLi functions PHP >= 5.0.0, requires libmysqli.dll   (bundled) php_oci8.dll Oracle 8 functions Requires: Oracle 8.1+ client libraries php_openssl.dll OpenSSL functions Requires: libeay32.dll (bundled) php_oracle.dll Oracle functions Requires: Oracle 7 client libraries php_sybase_ct.dll Sybase functions Requires: Sybase client libraries php_xmlrpc.dll XML-RPC functions PHP >= 4.2.1 requires: iconv.dll   (bundled) php_xslt.dll XSLT functions PHP <= 4.2.0 requires sablot.dll,  expat.dll (bundled). PHP >= 4.2.1 requires sablot.dll, expat.dll,  iconv.dll (bundled). 复制代码 重启apache成功后,运行phpinfo()可以看到php5.3.3的配置信息,至此升级成功。 注意:apache和mysql的配置不需要变,只是如果php的安装目录如果改变了要记得修改apache配置文件httpd.conf中相应的配置。
梦丫头 2019-12-01 23:24:40 0 浏览量 回答数 0

回答

Nginx.conf : user  oschina; worker_processes  2; #error_log  logs/error.log; #error_log  logs/error.log  notice; #error_log  logs/error.log  info; #pid        logs/nginx.pid; events {     use epoll;     worker_connections  2048; } http {     include       mime.types;     default_type  application/octet-stream;     #log_format  main  '$remote_addr - $remote_user [$time_local] $request '     #                  '"$status" $body_bytes_sent "$http_referer" '     #                  '"$http_user_agent" "$http_x_forwarded_for"';     #access_log  off;     access_log  logs/access.log;     client_header_timeout  3m;     client_body_timeout    3m;     send_timeout           3m;       client_header_buffer_size    1k;     large_client_header_buffers  4 4k;     sendfile        on;     tcp_nopush      on;     tcp_nodelay     on;     #keepalive_timeout  75 20;     include    gzip.conf;         server {     listen 80;     server_name .oschina.net;     location / {         rewrite (.*) http://www.oschina.net$1 permanent;     }     }     server {     listen 80;     server_name www.oschina.net my.oschina.net m.oschina.net;         log_format  oschina_log         '$remote_addr - $remote_user [$time_local] $request '         '"$status" $body_bytes_sent "$http_referer" '         '"$http_user_agent" "$http_x_forwarded_for"';         access_log  logs/oschina.log;     location ~ ^/(WEB-INF)/ {             deny all;         }         location ~ .(apk|torrent|htm|html|asp|php|gif|jpg|jpeg|png|bmp|ico|rar|css|js|zip|java|jar|txt|flv|swf|mid|doc|ppt|xls|pdf|txt|mp3|wma)$ {             root /data/oschina/webapp;         access_log off;             expires 24h;         }             location ~ ^/uploads/ {         access_log off;             root /data/oschina/webapp;         expires 24h;         }     location / {         proxy_pass http://localhost:8080;         include proxy.conf;     }     error_page 502 503 /502.html;         error_page 404 /404.html;     error_page 403 /403.html;     } } gzip.conf: gzip              on; gzip_min_length      1000; gzip_types         text/plain text/css application/x-javascript; proxy.conf: proxy_redirect          off; proxy_set_header        Host $host; proxy_set_header        X-Real-IP $remote_addr; proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size    10m; client_body_buffer_size 128k; proxy_connect_timeout   300; proxy_send_timeout      300; proxy_read_timeout      300; proxy_buffer_size       4k; proxy_buffers           4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k;######rewrite (.*) http://www.oschina.net$1 permanent; 这句的意思,是不是访问 http://localhost:8080/oschina 这样的后端 url ,会重定下到 http://localhost/oschina ?######老大回帖真够快的。。。 感谢,正好配一下######engine X与 Tomcat通讯是用8080端口进行 代理proxy是吗? 正则那里还没怎么看懂,看来还得看看engine x的资料补习补习######我也发扬一下风格,这里是我对apache和tomcat的配置: httpd.conf LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so #LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_alias_module modules/mod_authn_alias.so #LoadModule authn_anon_module modules/mod_authn_anon.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cache_module modules/mod_cache.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so LoadModule dav_module modules/mod_dav.so LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so #LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule disk_cache_module modules/mod_disk_cache.so #LoadModule dumpio_module modules/mod_dumpio.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so #LoadModule headers_module modules/mod_headers.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule ssl_module modules/mod_ssl.so #LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so #LoadModule unique_id_module modules/mod_unique_id.so   //mod_security 共同打开(下边配置中已经打开) #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so #SVN Module conf LoadModule dav_svn_module "D:/Serv/Subversion/bin/mod_dav_svn.so" LoadModule authz_svn_module "D:/Serv/Subversion/bin/mod_authz_svn.so" #PHP Module conf LoadModule php5_module "D:/Serv/Apache/PHP/php5apache2_2.dll" PHPIniDir "D:/Serv/Apache/PHP/" #mod_security conf 2.5.12 LoadModule security2_module modules/mod_security2/mod_security2.so LoadModule unique_id_module modules/mod_unique_id.so SecRuleEngine On SecDefaultAction log,auditlog,deny,status:403,phase:2,t:lowercase,t:replaceNulls,t:compressWhitespace SecAuditEngine RelevantOnly SecAuditLogType Serial SecAuditLog logs/mod_security2.log #jk Module conf LoadModule jk_module modules/mod_jk.so Where to find workers.properties JkWorkersFile conf/worker.properties JkMountFile conf/uriworkermap.properties Where to put jk logs JkLogFile logs/mod_jk.log Set the jk log level [debug/error/info] JkLogLevel info Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat set the request format JkRequestLogFormat "%w %V %T" <IfModule !mpm_netware_module> <IfModule !mpm_winnt_module> ServerName localhost DocumentRoot "D:/Serv/wwwroot/" <Directory "D:/Serv/wwwroot/cache/status">     Order allow,deny     Deny from all     #allow from 127.0.0.1 </Directory> <Location /svn>         DAV svn         SVNPath "D:/Serv/svnroot/" </Location> 后面部分无关紧要的就不贴了。 worker.properties的配置 #--- see following for detail    "http://tomcat.apache.org/connectors-doc/"   "http://tomcat.apache.org/connectors-doc/reference/workers.html"   #========server列表======== worker.list=controller,status #========controller,负载均衡控制器========   load-balance worker, can be "lb, status" worker.controller.type=lb worker.controller.balance_workers=tomcat1,tomcat2 如何选择最优的worker, B[usyness]: 选最不忙的, R[equest]: 缺省 worker.controller.method=B #ticky_session   sticky_session_force             含义     true             false            SESSION会复制,有粘性     true             true             SESSION不复制,有粘性     false            false            SESSION会复制,无粘性     false            true             SESSION会复制,无粘性 注意 worker.controller.sticky_session=1,等同于worker.controller.sticky_session=true.此处指定集群是否需要会话复制, #如果设为true,则表明为会话粘性,不进行会话复制,当某用户的请求第一次分发到哪台Tomcat后,后继的请求会一直分发到此 #Tomcat服务器上处理;如果设为false,则表明需求会话复制。这就是说,如果你要想进行均衡负载,并在192.168.1.5和192.168.1.3 #两台机器的Tomcat实例上实现集群全局session复制,此处值要设置成false。 #sticky_session 1: True, otherwise False, 相同session id一直访问同一服务器    #sticky_session_force session id出错状态不返回500(Server Error), 由另一worker接手    worker.controller.sticky_session=0 worker.controller.sticky_session_force=0 #worker.status.type=status #========tomcat1========    worker.tomcat1.port=8009 worker.tomcat1.host=localhost worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=1 worker.tomcat1.socket_connect_timeout=3000 #========tomcat2======== #worker.tomcat2.port=8009 #worker.tomcat2.host=localhost #worker.tomcat2.type=ajp13 #worker.tomcat2.lbfactor=1 #worker.tomcat2.socket_connect_timeout=3000 worker.connection_pool_size=10 #默认值(connection_pool_size +1)/ 2 worker.connection_pool_minsize=5 worker.socket_timeout=1 worker.socket_connect_timeout=3000 uriworkermap.properties配置,设置转发规则 /.jsp=controller /.do=controller /blog/=controller /bbs/=controller /site/=controller  !/.html=controller  !/.gif=controller  !/.jpg=controller  !/*.png=controller  extra/httpd-mpm.conf 模块   上边一样的就不贴了,主要是下边的配置,因为我用了mod_security模块,所以要做一些配置,这里不做解释了,写的很详细,我比较喜欢在配置文件里把容易忘记的地方写上文档。毕竟这东西配完了就不再动了,很容易忘记 WinNT MPM ThreadsPerChild: constant number of worker threads in the server process MaxRequestsPerChild: maximum  number of requests a server process serves #注意:ThreadLimit指令应当放在ThreadsPerChild之前,否则ThreadsPerChild指令生效后ThreadLimit会失效,而导致不必要的错误 ThreadLimit必须大于等于ThreadsPerChild #对于mpm_winnt,ThreadLimit的默认值是1920;对于其他MPM这个值是64 #ThreadLimit 这个指令设置了每个子进程可配置的线程数ThreadsPerChild上限。任何在重启期间对这个指令的改变都将被忽略,但对ThreadsPerChild的修改却会生效。 #ThreadLimit 使用这个指令时要特别当心。如果将ThreadLimit设置成一个高出ThreadsPerChild实际需要很多的值,将会有过多的共享内存被分配。 #如果将ThreadLimit和ThreadsPerChild设置成超过系统的处理能力,Apache可能无法启动,或者系统将变得不稳定。该指令的值应当和ThreadsPerChild大致保持一致 #ThreadsPerChild 每个子进程建立的常驻的执行线程数。默认值是25。子进程在启动时建立这些线程后就不再建立新的线程了。 <IfModule mpm_winnt_module>     ThreadLimit            2000     ThreadsPerChild        2000     MaxRequestsPerChild    2000 </IfModule> ######当然由于日常使用windows的原因,因此apache的配置并不一定适合linux 这里是NT架构使用了线程,而linux一般都是使用进程。 以前研究过apache的文档,但老是看过以后就忘记了,用的时候还得继续看,比较恶心。######嘿, 因为 Nginx 就是 http 协议的反向代理, 所以不需要像 apache 那样还得来个 JK 如果是我那,就直接在 Nginx 上分辨, 是 PHP 就给 Apache, 是 jsp 就直接 tomcat 连 apache 的 JK 都省了。 但Session 粘贴问题的话,Nginx 的 第三方 session 功能好像暂时还是在测试阶段...除非只用 cookies 所以应用还得斟酌了.######受教了
kun坤 2020-06-04 11:06:34 0 浏览量 回答数 0

问题

Nginx配置及Rewrite规则

Nginx Rewrite 规则相关指令 相关指令有if,rewrite,set,return,break等,其中最关键的就是rewrite.一个简单的Nginx Rewrite规则语法如下:rewrite ^/...
thisisdong 2019-12-01 21:14:25 38367 浏览量 回答数 5

问题

SDK下载

最新版本 JAVA SDK Python SDK PHP SDK C# SDK 历史版本 JAVA SDK: java_sdk.zipPython SDK: python_sdk.zipPhp SDK: php_sdk....
行者武松 2019-12-01 21:43:13 1551 浏览量 回答数 0

问题

Php 加载rar 外部库:报错

PHP Rar Archiving 模块 (php_rar) 是一个读取和解压rar文件的模块,但不提供RAR压缩(打包)的功能。 1.首先要到PECL的RAR页面下载DLL. 根据自己的情况选择下载对应版本的D...
kun坤 2020-06-07 21:59:48 1 浏览量 回答数 1

问题

Php 加载rar 外部库?报错

PHP Rar Archiving 模块 (php_rar) 是一个读取和解压rar文件的模块,但不提供RAR压缩(打包)的功能。 1.首先要到PECL的RAR页面下载DLL. 根据自己的情况选择下载对应版本的D...
爱吃鱼的程序员 2020-06-10 13:43:00 0 浏览量 回答数 1

回答

安装方法如下: 1. 下载ioncube_loaders_win_vc9_x86.zip 官网: http://www.ioncube.com/ 2. 将压缩包内的ioncube_loader_win_5.3.dll拷贝至\bin\php\php5.3.8\zend_ext目录下 3. 在wamp\bin\apache\Apache2.2.21\bin\php.ini中添加 zend_extension = “d:/dev/wamp/bin/php/php5.3.8/zend_ext/ioncube_loader_win_5.3.dll” 注意: 如果使用xdebug的话,ioncube_loader.dll的zend_extension声明要放在xdebug的zend_extension之前 4. web server 5. 将压缩包内的loader-wizard.php拷贝至网站根目录下 在浏览器中键入 http://yourdomain/loader-wizard.php,cache会自动安装,安装完成后给出成功信息: ------------------------- 回 2楼(ivmmff) 的帖子 是啊,所以才出了那多的一键包供大家使用! ------------------------- 回 6楼(ivmmff) 的帖子 服了,他们也就是新手,害怕linux的操作,所以选择win的 ------------------------- 回 8楼(ivmmff) 的帖子 他们不怕这个,1G内存都用的windows2008或是2012,那简直是慢死,不是论坛有人就吐槽说ECS慢么! ------------------------- 回 12楼(小k快跑) 的帖子 虚拟主机是安装不了的
鬼才神兵 2019-12-01 23:17:01 0 浏览量 回答数 0

问题

[阿里云免费套餐]在 CentOS7 上安装 OpenResty PHP7.1 MariaDB10.2

来自: https://www.mf8.biz/centos7-openresty-php7-1-mariadb10-2/ 系统准备 一、卸载不必须的组件 yum -y groupremove "Basi...
妙正灰 2019-12-01 21:32:38 6952 浏览量 回答数 1

问题

如何正确配置docker中的supervisor

I have a working laravel environment using docker. my projects has multiple services in different container such as redi...
刘刚_ 2020-05-23 21:08:00 1 浏览量 回答数 0

问题

UTF-8aliyuniisphpmysqlx8664.exe 下载中文文件问题

UTF-8''aliyun_iis_php_mysql_x86_64.exe  我的服务器使用的这个一键安装包 ,安装完以后 附件是中文的 zip 文件不能下载 ,哪位大神帮忙给指导一下ÿ...
s狼图腾 2019-12-01 22:08:13 1407 浏览量 回答数 1

回答

Re在CentOS 6.5系统安装php5.2和Zend Optimizer(图文教程) 我装了一下,出现问题了,这是怎么回事呢 [root@ziluopao ~]# yum install php52 php52-gd php52-mbstring php52-mysqlLoaded plugins: securitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Package php52.x86_64 0:5.2.17-1.el6 will be installed--> Processing Dependency: php-common = 5.2.17-1.el6 for package: php52-5.2.17-1.el6.x86_64--> Processing Dependency: php-cli = 5.2.17-1.el6 for package: php52-5.2.17-1.el6.x86_64---> Package php52-gd.x86_64 0:5.2.17-1.el6 will be installed---> Package php52-mbstring.x86_64 0:5.2.17-1.el6 will be installed---> Package php52-mysql.x86_64 0:5.2.17-1.el6 will be installed--> Running transaction check---> Package php-pecl-zip.x86_64 0:1.13.5-1.el6.remi.5.6 will be obsoleted--> Processing Dependency: php-pecl-zip(x86-64) for package: php-common-5.6.29-1.el6.remi.x86_64---> Package php52-cli.x86_64 0:5.2.17-1.el6 will be installed---> Package php52-common.x86_64 0:5.2.17-1.el6 will be obsoleting--> Running transaction check---> Package php56-common.x86_64 0:5.6.12-1.el6 will be installed--> Processing Conflict: php56-common-5.6.12-1.el6.x86_64 conflicts php-common < 5.5.0--> Finished Dependency ResolutionError: php56-common conflicts with php52-common-5.2.17-1.el6.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest[root@ziluopao ~]#
紫罗袍 2019-12-02 03:10:27 0 浏览量 回答数 0

问题

看看今天都有谁来看你

我们都知道php中有变量记录单独访问的客户端ip地址,但是如果我们给他加上时间戳和国家地区,就可以更清楚的了解和掌握,每天都有哪些人来访问你的网站了。这个帖子像你介绍一种基于geoip数据库的简单记...
coderandroid 2019-12-01 21:21:49 9173 浏览量 回答数 3

问题

Windows2008r2+IIS7.5+mysql+php+URL_rewrite伪静态的环境配置

Windows2008r2+IIS7.5+mysql+php+URL_rewrite伪静态的配置,本文适用32、64 bit的IIS7和IIS7.5,php5.2.x、php5.3...
zhedianshi 2019-12-01 22:08:06 43897 浏览量 回答数 11

问题

Vestacp如何让默认的php5.6降级到php5.2呢

受该帖 https://bbs.aliyun.com/read/254641.html的启发,在一个装有vestacp的vps中试装了一下php5.2没有成功,不知为啥 [root@ziluopao...
紫罗袍 2019-12-01 21:33:39 3559 浏览量 回答数 2

问题

阿里云Linux下Nginx服务器整合php

听说镜像要收费了?不知是真是假?所以说自己动手丰衣足食,前几天主要说的一些Nginx和tomcat的基础知识以及集群的基础配置。 今天重点说一些php-fpm的安装配置。 nginx本身...
小柒2012 2019-12-01 21:20:48 9433 浏览量 回答数 2

回答

Relocalhost和127.0.0.1都无法正常访问 引用第2楼dongshan8于2016-04-19 10:05发表的  : 楼主您好, 能贴出您的 apache 配置文件内容吗? 您是如何布置的 apache + php + mysql 的呢?是手工安装,还是用自动安装脚本来安装的? ....... [url=https://bbs.aliyun.com/job.php?action=topost&tid=277757&pid=779671][/url] 版主来了, 太感动了, 多谢!!!    httpd.conf ## This is the main Apache HTTP server configuration file.  It contains the# configuration directives that give the server its instructions.# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.# In particular, see # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html># for a discussion of each configuration directive.## Do NOT simply read the instructions in here without understanding# what they do.  They're here only as hints or reminders.  If you are unsure# consult the online docs. You have been warned.  ## Configuration and logfile names: If the filenames you specify for many# of the server's control files begin with "/" (or "drive:/" for Win32), the# server will use that explicit path.  If the filenames do *not* begin# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"# with ServerRoot set to "D:/WAMP/apache" will be interpreted by the# server as "D:/WAMP/apache/logs/foo.log".## NOTE: Where filenames are specified, you must use forward slashes# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").# If a drive letter is omitted, the drive on which httpd.exe is located# will be used by default.  It is recommended that you always supply# an explicit drive letter in absolute paths to avoid confusion.## ServerRoot: The top of the directory tree under which the server's# configuration, error, and log files are kept.## Do not add a slash at the end of the directory path.  If you point# ServerRoot at a non-local disk, be sure to point the LockFile directive# at a local disk.  If you wish to share the same ServerRoot for multiple# httpd daemons, you will need to change at least LockFile and PidFile.#ServerRoot "D:/WAMP/apache"## Listen: Allows you to bind Apache to specific IP addresses and/or# ports, instead of the default. See also the <VirtualHost># directive.## Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses.##Listen 12.34.56.78:80Listen 80## Dynamic Shared Object (DSO) Support## To be able to use the functionality of a module which was built as a DSO you# have to place corresponding `LoadModule' lines at this location so the# directives contained in it are actually available _before_ they are used.# Statically compiled modules (those listed by `httpd -l') do not need# to be loaded here.## Example:# LoadModule foo_module modules/mod_foo.so#LoadModule actions_module modules/mod_actions.soLoadModule alias_module modules/mod_alias.soLoadModule asis_module modules/mod_asis.soLoadModule auth_basic_module modules/mod_auth_basic.so#LoadModule auth_digest_module modules/mod_auth_digest.so#LoadModule authn_alias_module modules/mod_authn_alias.so#LoadModule authn_anon_module modules/mod_authn_anon.so#LoadModule authn_dbd_module modules/mod_authn_dbd.so#LoadModule authn_dbm_module modules/mod_authn_dbm.soLoadModule authn_default_module modules/mod_authn_default.soLoadModule authn_file_module modules/mod_authn_file.so#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so#LoadModule authz_dbm_module modules/mod_authz_dbm.soLoadModule authz_default_module modules/mod_authz_default.soLoadModule authz_groupfile_module modules/mod_authz_groupfile.soLoadModule authz_host_module modules/mod_authz_host.so#LoadModule authz_owner_module modules/mod_authz_owner.soLoadModule authz_user_module modules/mod_authz_user.soLoadModule autoindex_module modules/mod_autoindex.so#LoadModule cache_module modules/mod_cache.so#LoadModule cern_meta_module modules/mod_cern_meta.soLoadModule cgi_module modules/mod_cgi.so#LoadModule charset_lite_module modules/mod_charset_lite.so#LoadModule dav_module modules/mod_dav.so#LoadModule dav_fs_module modules/mod_dav_fs.so#LoadModule dav_lock_module modules/mod_dav_lock.so#LoadModule dbd_module modules/mod_dbd.soLoadModule deflate_module modules/mod_deflate.soLoadModule dir_module modules/mod_dir.so#LoadModule disk_cache_module modules/mod_disk_cache.so#LoadModule dumpio_module modules/mod_dumpio.soLoadModule env_module modules/mod_env.soLoadModule expires_module modules/mod_expires.so#LoadModule ext_filter_module modules/mod_ext_filter.so#LoadModule file_cache_module modules/mod_file_cache.soLoadModule filter_module modules/mod_filter.soLoadModule headers_module modules/mod_headers.so#LoadModule ident_module modules/mod_ident.so#LoadModule imagemap_module modules/mod_imagemap.soLoadModule include_module modules/mod_include.so#LoadModule info_module modules/mod_info.soLoadModule isapi_module modules/mod_isapi.so#LoadModule ldap_module modules/mod_ldap.so#LoadModule logio_module modules/mod_logio.soLoadModule log_config_module modules/mod_log_config.so#LoadModule log_forensic_module modules/mod_log_forensic.so#LoadModule mem_cache_module modules/mod_mem_cache.soLoadModule mime_module modules/mod_mime.so#LoadModule mime_magic_module modules/mod_mime_magic.soLoadModule negotiation_module modules/mod_negotiation.so#LoadModule proxy_module modules/mod_proxy.so#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so#LoadModule proxy_connect_module modules/mod_proxy_connect.so#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so#LoadModule proxy_http_module modules/mod_proxy_http.so#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so#LoadModule reqtimeout_module modules/mod_reqtimeout.soLoadModule rewrite_module modules/mod_rewrite.soLoadModule setenvif_module modules/mod_setenvif.so#LoadModule speling_module modules/mod_speling.soLoadModule ssl_module modules/mod_ssl.so#LoadModule status_module modules/mod_status.so#LoadModule substitute_module modules/mod_substitute.so#LoadModule unique_id_module modules/mod_unique_id.so#LoadModule userdir_module modules/mod_userdir.so#LoadModule usertrack_module modules/mod_usertrack.so#LoadModule version_module modules/mod_version.so#LoadModule vhost_alias_module modules/mod_vhost_alias.so<IfModule !mpm_netware_module><IfModule !mpm_winnt_module>## If you wish httpd to run as a different user or group, you must run# httpd as root initially and it will switch.  ## User/Group: The name (or #number) of the user/group to run httpd as.# It is usually good practice to create a dedicated user and group for# running httpd, as with most system services.#User daemonGroup daemon</IfModule></IfModule># 'Main' server configuration## The directives in this section set up the values used by the 'main'# server, which responds to any requests that aren't handled by a# <VirtualHost> definition.  These values also provide defaults for# any <VirtualHost> containers you may define later in the file.## All of these directives may appear inside <VirtualHost> containers,# in which case these default settings will be overridden for the# virtual host being defined.### ServerAdmin: Your address, where problems with the server should be# e-mailed.  This address appears on some server-generated pages, such# as error documents.  e.g. admin@your-domain.com#ServerAdmin scp1688@163.com## ServerName gives the name and port that the server uses to identify itself.# This can often be determined automatically, but we recommend you specify# it explicitly to prevent problems during startup.## If your host doesn't have a registered DNS name, enter its IP address here.#ServerName www.phpStudy.net:80## DocumentRoot: The directory out of which you will serve your# documents. By default, all requests are taken from this directory, but# symbolic links and aliases may be used to point to other locations.#DocumentRoot  "D:\WAMP\WWW"## Each directory to which Apache has access can be configured with respect# to which services and features are allowed and/or disabled in that# directory (and its subdirectories). ## First, we configure the "default" to be a very restrictive set of # features.  #<Directory />  Options FollowSymLinks    AllowOverride All    Order deny,allow    Allow from all</Directory>## Note that from this point forward you must specifically allow# particular features to be enabled - so if something's not working as# you might expect, make sure that you have specifically enabled it# below.### This should be changed to whatever you set DocumentRoot to.#<Directory "D:\WAMP\WWW">    #    # Possible values for the Options directive are "None", "All",    # or any combination of:    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews    #    # Note that "MultiViews" must be named *explicitly* --- "Options All"    # doesn't give it to you.    #    # The Options directive is both complicated and important.  Please see    # http://httpd.apache.org/docs/2.2/mod/core.html#options    # for more information.    #    Options FollowSymLinks    #    # AllowOverride controls what directives may be placed in .htaccess files.    # It can be "All", "None", or any combination of the keywords:    #   Options FileInfo AuthConfig Limit    #    AllowOverride All    #    # Controls who can get stuff from this server.    #    Order allow,deny    Allow from all</Directory>## DirectoryIndex: sets the file that Apache will serve if a directory# is requested.#<IfModule dir_module>    DirectoryIndex index.html index.php index.htm</IfModule>## The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. #<FilesMatch "^\.ht">    Order allow,deny    Deny from all    Satisfy All</FilesMatch>## ErrorLog: The location of the error log file.# If you do not specify an ErrorLog directive within a <VirtualHost># container, error messages relating to that virtual host will be# logged here.  If you *do* define an error logfile for a <VirtualHost># container, that host's errors will be logged there and not here.#ErrorLog "logs/error.log"## LogLevel: Control the number of messages logged to the error_log.# Possible values include: debug, info, notice, warn, error, crit,# alert, emerg.#LogLevel warn<IfModule log_config_module>    #    # The following directives define some format nicknames for use with    # a CustomLog directive (see below).    #    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined    LogFormat "%h %l %u %t \"%r\" %>s %b" common    <IfModule logio_module>      # You need to enable mod_logio.c to use %I and %O      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio    </IfModule>    #    # The location and format of the access logfile (Common Logfile Format).    # If you do not define any access logfiles within a <VirtualHost>    # container, they will be logged here.  Contrariwise, if you *do*    # define per-<VirtualHost> access logfiles, transactions will be    # logged therein and *not* in this file.    #    CustomLog "logs/access.log" common    #    # If you prefer a logfile with access, agent, and referer information    # (Combined Logfile Format) you can use the following directive.    #    #CustomLog "logs/access.log" combined</IfModule><IfModule alias_module>    #    # Redirect: Allows you to tell clients about documents that used to     # exist in your server's namespace, but do not anymore. The client     # will make a new request for the document at its new location.    # Example:    # Redirect permanent /foo http://www.phpStudy.net/bar    #    # Alias: Maps web paths into filesystem paths and is used to    # access content that does not live under the DocumentRoot.    # Example:    # Alias /webpath /full/filesystem/path    #    # If you include a trailing / on /webpath then the server will    # require it to be present in the URL.  You will also likely    # need to provide a <Directory> section to allow access to    # the filesystem path.    #    # ScriptAlias: This controls which directories contain server scripts.     # ScriptAliases are essentially the same as Aliases, except that    # documents in the target directory are treated as applications and    # run by the server when requested rather than as documents sent to the    # client.  The same rules about trailing "/" apply to ScriptAlias    # directives as to Alias.    #    ScriptAlias /cgi-bin/ "D:/WAMP/apache/cgi-bin/"</IfModule><IfModule cgid_module>    #    # ScriptSock: On threaded servers, designate the path to the UNIX    # socket used to communicate with the CGI daemon of mod_cgid.    #    #Scriptsock logs/cgisock</IfModule>## "D:/WAMP/apache/cgi-bin" should be changed to whatever your ScriptAliased# CGI directory exists, if you have that configured.#<Directory "D:/WAMP/apache/cgi-bin">    AllowOverride All    Options None    Order allow,deny    Allow from all</Directory>## DefaultType: the default MIME type the server will use for a document# if it cannot otherwise determine one, such as from filename extensions.# If your server contains mostly text or HTML documents, "text/plain" is# a good value.  If most of your content is binary, such as applications# or images, you may want to use "application/octet-stream" instead to# keep browsers from trying to display binary files as though they are# text.#DefaultType text/plain<IfModule mime_module>    #    # TypesConfig points to the file containing the list of mappings from    # filename extension to MIME-type.    #    TypesConfig conf/mime.types    #    # AddType allows you to add to or override the MIME configuration    # file specified in TypesConfig for specific file types.    #    #AddType application/x-gzip .tgz    #    # AddEncoding allows you to have certain browsers uncompress    # information on the fly. Note: Not all browsers support this.    #    #AddEncoding x-compress .Z    #AddEncoding x-gzip .gz .tgz    #    # If the AddEncoding directives above are commented-out, then you    # probably should define those extensions to indicate media types:    #    AddType application/x-compress .Z    AddType application/x-gzip .gz .tgz    #    # AddHandler allows you to map certain file extensions to "handlers":    # actions unrelated to filetype. These can be either built into the server    # or added with the Action directive (see below)    #    # To use CGI scripts outside of ScriptAliased directories:    # (You will also need to add "ExecCGI" to the "Options" directive.)    #    #AddHandler cgi-script .cgi    # For type maps (negotiated resources):    #AddHandler type-map var    #    # Filters allow you to process content before it is sent to the client.    #    # To parse .shtml files for server-side includes (SSI):    # (You will also need to add "Includes" to the "Options" directive.)    #    #AddType text/html .shtml    #AddOutputFilter INCLUDES .shtml</IfModule>## The mod_mime_magic module allows the server to use various hints from the# contents of the file itself to determine its type.  The MIMEMagicFile# directive tells the module where the hint definitions are located.##MIMEMagicFile conf/magic## Customizable error responses come in three flavors:# 1) plain text 2) local redirects 3) external redirects## Some examples:#ErrorDocument 500 "The server made a boo boo."#ErrorDocument 404 /missing.html#ErrorDocument 404 "/cgi-bin/missing_handler.pl"#ErrorDocument 402 http://www.phpStudy.net/subscription_info.html### MaxRanges: Maximum number of Ranges in a request before# returning the entire resource, or 0 for unlimited# Default setting is to accept 200 Ranges#MaxRanges 0## EnableMMAP and EnableSendfile: On systems that support it, # memory-mapping or the sendfile syscall is used to deliver# files.  This usually improves server performance, but must# be turned off when serving from networked-mounted # filesystems or if support for these functions is otherwise# broken on your system.##EnableMMAP off#EnableSendfile off# Supplemental configuration## The configuration files in the conf/extra/ directory can be # included to add extra features or to modify the default configuration of # the server, or you may simply copy their contents here and change as # necessary.# Server-pool management (MPM specific)Include conf/extra/httpd-mpm.conf# Multi-language error messages#Include conf/extra/httpd-multilang-errordoc.conf# Fancy directory listings#Include conf/extra/httpd-autoindex.conf# Language settings#Include conf/extra/httpd-languages.conf# User home directories#Include conf/extra/httpd-userdir.conf# Real-time info on requests and configuration#Include conf/extra/httpd-info.conf# Virtual hostsInclude conf/extra/httpd-vhosts.conf# Local access to the Apache HTTP Server Manual#Include conf/extra/httpd-manual.conf# Distributed authoring and versioning (WebDAV)#Include conf/extra/httpd-dav.conf# Various default settings#Include conf/extra/httpd-default.confInclude conf/phpmyadmin.confInclude conf/vhosts.conf# Secure (SSL/TLS) connections#Include conf/extra/httpd-ssl.conf## Note: The following must must be present to support#       starting without SSL on platforms with no /dev/random equivalent#       but a statically compiled-in mod_ssl.#LoadFile "D:/WAMP/PHP/php5ts.dll"LoadModule php5_module "D:/WAMP/PHP/php5apache2_2.dll"<IfModule php5_module>    PHPIniDir "D:/WAMP/PHP/"    AddType application/x-httpd-php .php .phtml</IfModule>LoadFile "D:/WAMP/PHP/libmysql.dll"LoadFile "D:/WAMP/PHP/libmcrypt.dll"<IfModule ssl_module>SSLRandomSeed startup builtinSSLRandomSeed connect builtin</IfModule><IfModule mod_Rewrite.c>RewriteEngine OnRewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2</IfModule><ifmodule mod_deflate.c>AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript</ifmodule>TraceEnable off<IfModule deflate_module>SetOutputFilter DEFLATE# Don’t compress images and otherSetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-varySetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-varySetEnvIfNoCase Request_URI .(?:pdf|doc)$ no-gzip dont-varyAddOutputFilterByType DEFLATE text/html text/plain text/xml text/cssAddOutputFilterByType DEFLATE application/x-javascript</IfModule> ------------------------- Relocalhost和127.0.0.1都无法正常访问 哦, 我找到了, 默认目录修改之后这里没有跟上, 感谢版主的帮助, 谢谢!
tunawt 2019-12-02 02:35:55 0 浏览量 回答数 0
阿里云大学 云服务器ECS com域名 网站域名whois查询 开发者平台 小程序定制 小程序开发 国内短信套餐包 开发者技术与产品 云数据库 图像识别 开发者问答 阿里云建站 阿里云备案 云市场 万网 阿里云帮助文档 免费套餐 开发者工具 企业信息查询 小程序开发制作 视频内容分析 企业网站制作 视频集锦 代理记账服务 企业建站模板