[No such file or directory]安卓FTP上传时提示找不到文件!

以下是异常代码,提示我找不到这个文件,明明是有的,权限也加了;

com.example.test_617 E/AndroidRuntime: FATAL EXCEPTION: Thread-239
Process: com.example.test_617, PID: 4922
java.lang.RuntimeException: FTP客户端出错!
at com.example.test_617.MainActivity.ftpUpload(MainActivity.java:70)
at com.example.test_617.MainActivity$1.run(MainActivity.java:36)
Caused by: java.io.FileNotFoundException: /storage/emulated/0/DCIM/imgSavePL2016-06-17_7455.png: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:409)
at java.io.FileInputStream.(FileInputStream.java:78)
at java.io.FileInputStream.(FileInputStream.java:105)
at com.example.test_617.MainActivity.ftpUpload(MainActivity.java:59)
at com.example.test_617.MainActivity$1.run(MainActivity.java:36) 
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)


2个回答

楼主,看了日志
建议你把路径改为 /DCIM/imgSavePL2016-06-17_7455.png或是/sdcard/imgSavePL2016-06-17_7455.png或/sdcard2/imgSavePL2016-06-17_7455.png试试

最近刚开始学cocos2dx,用Visual Studio 2010,很不习惯,在其中遇到了如下错误:
fatal error C1083: 无法打开包括文件:“MyClass.h”: No such file or directory
也就是VS找不到MyClass.h。我一看,这个文件明明就在目录下,为什么找不到呢?原因就是这个文件没有与调用它的文件在同一个目录下。
解决方案:
1,使......
答案就在这里:Visual Studio错误:找不到文件No such file or directory
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
windows系统php使用ftp上传阿里云服务器,提示No such file or directory
windows系统php使用ftp上传阿里云服务器,提示No such file or directory,上传其他服务器没问题,阿里云ip访问已经设置了,有哪位大神知道如何处理,下面是代码 ``` function FTPuploads() { $file = "D:/2019032157946.jpeg"; $ftp = C('FTP_CONFIG'); $remote_file = $ftp['ftp_trmote_file']; //链接确认 $conn_id = ftp_connect(trim($ftp['ftp_server'])); ftp_pasv($conn_id, true); if (!$conn_id) { //连接失败 echo 'connect fail'; die(); } //登录 $login_result = ftp_login($conn_id, trim($ftp['ftp_user_name']), trim($ftp['ftp_user_pass'])); if (!$login_result) { //登录失败 echo 'login error'; //关闭连接 ftp_close($conn_id); die(); } else { //登录成功 //echo 'success'; } //ftp_close($conn_id);die(); @ftp_pasv($conn_id,1); // 打开被动模拟 //上传 if( is_dir($file) ) { $contents_on_server = ftp_nlist($conn_id, $remote_file); if(!in_array($remote_file."/.", $contents_on_server)) { if(!ftp_mkdir($conn_id, $remote_file)) { echo "There was a problem while creating $file/n"; exit; } } } else { $re = @ftp_put($conn_id,$remote_file,$file,FTP_BINARY); if (!$re) { echo "put fail"; } } //关闭连接 ftp_close($conn_id); } ```
VMware 下 Red Hat 5 FTP配置 问题
![图片说明](https://img-ask.csdn.net/upload/201608/12/1470987253_372740.png) 挂载光驱之后,我在Server的目录下面能找到FTP的文件,但是在执行的时候却显示文件不存在。 接着我又查看Server目录下面的文件权限,都是rw,唯独不能执行。 我想是不是因为权限不足的原因造成文件不能执行,所以反馈给我no such file or directory。
centos7卸载ftp服务报错
centos7安装ftp之后再卸载,我先删除了所有相关的文件夹,然后 [root@node214 ~]# rpm -qa | grep vsftpd vsftpd-2.2.2-24.el6.x86_64 [root@node214 ~]# rpm -e vsftpd-2.2.2-24.el6.x86_64 error reading information on service vsftpd: No such file or directory error: %preun(vsftpd-2.2.2-24.el6.x86_64) scriptlet failed, exit status 1 error: vsftpd-2.2.2-24.el6.x86_64: erase failed 开始报错,应该是直接卸载而不是先删除文件夹,现在 安装或者卸载都进行不了,请问现在要怎么解决这个问题?
VSFTPD,可以FTP下载但是FTP上传时报“550 Permission denied.”
ubuntu14.04 安装VSFTPD,可以FTP下载但是FTP上传时报“550 Permission denied.”恳请各位大神求助 ================================================== 我把FTP主目录文件夹的权限都设置成777了,但还是不能上传(下载文件是可以的) 配置文件(/etc/vsftpd.conf)那里我是设置成用本地用户登录的; write_enable=YES,这个东西也设置了。我已经搞了2天了,都没搞好,要崩溃了。。。。 配置脚本如下: =============================================== # Example config file /etc/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is NOT an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's # capabilities. # # # Run standalone? vsftpd can run either from an inetd or as a standalone # daemon started from an initscript. listen=YES # # Run standalone with IPv6? # Like the listen parameter, except vsftpd will listen on an IPv6 socket # instead of an IPv4 one. This parameter and the listen parameter are mutually # exclusive. #listen_ipv6=YES # # Allow anonymous FTP? (Disabled by default) anonymous_enable=NO # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022 # # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # If enabled, vsftpd will display directory listings with the time # in your local time zone. The default is to display GMT. The # times returned by the MDTM FTP command are also affected by this # option. use_localtime=YES # # Activate logging of uploads/downloads. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data). #connect_from_port_20=YES port_enable=NO connetc_from_port_20=NO # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # You may override where the log file goes if you like. The default is shown # below. #xferlog_file=/var/log/vsftpd.log # # If you want, you can have your log file in standard ftpd xferlog format. # Note that the default log file location is /var/log/xferlog in this case. #xferlog_std_format=YES # # You may change the default value for timing out an idle session. #idle_session_timeout=600 # # You may change the default value for timing out a data connection. #data_connection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code is non-trivial). Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # predicted this attack and has always been safe, reporting the size of the # raw file. # ASCII mangling is a horrible feature of the protocol. ascii_upload_enable=YES ascii_download_enable=YES # # You may fully customise the login banner string: ftpd_banner=Welcome to blah FTP service. # # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd.banned_emails # # You may restrict local users to their home directories. See the FAQ for # the possible risks in this before using chroot_local_user or # chroot_list_enable below. #chroot_local_user=YES # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). # (Warning! chroot'ing can be very dangerous. If using chroot, make sure that # the user does not have write access to the top level directory within the # chroot) chroot_local_user=YES chroot_list_enable=YES # (default follows) chroot_list_file=/etc/vsftpd.chroot_list # # You may activate the "-R" option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume # the presence of the "-R" option, so there is a strong case for enabling it. #ls_recurse_enable=YES # # Customization # # Some of vsftpd's settings don't fit the filesystem layout by # default. # # This option should be the name of a directory which is empty. Also, the # directory should not be writable by the ftp user. This directory is used # as a secure chroot() jail at times vsftpd does not require filesystem # access. secure_chroot_dir=/var/run/vsftpd/empty # # This string is the name of the PAM service vsftpd will use. pam_service_name=vsftpd # # This option specifies the location of the RSA certificate to use for SSL # encrypted connections. rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem # This option specifies the location of the RSA key to use for SSL # encrypted connections. rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key #wei add seccomp_sandbox=NO userlist_enable=YES userlist_deny=YES userlist_file=/etc/allowed_users pasv_enable=YES pasv_max_port=0 pasv_max_port=0
ftp 登录时 530 Login incorrect. Login failed
Jun 25 15:39:10 localhost sshd[1985]: Server listening on 0.0.0.0 port 22. Jun 25 15:39:10 localhost sshd[1985]: Server listening on :: port 22. Jun 25 15:39:19 localhost polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session1 (system bus name :1.25 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Jun 25 15:39:41 localhost pam: gdm-password: pam_unix(gdm-password:session): session opened for user centos by (uid=0) Jun 25 15:39:41 localhost polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session1 (system bus name :1.25, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Jun 25 15:39:44 localhost polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session2 (system bus name :1.46 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Jun 25 15:45:18 localhost sshd[2887]: Accepted password for root from 192.168.88.1 port 49369 ssh2 Jun 25 15:45:18 localhost sshd[2887]: pam_unix(sshd:session): session opened for user root by (uid=0) Jun 25 15:48:59 localhost sshd[1930]: Server listening on 0.0.0.0 port 22. Jun 25 15:48:59 localhost sshd[1930]: Server listening on :: port 22. Jun 25 15:49:06 localhost polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session1 (system bus name :1.25 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Jun 25 15:49:27 localhost pam: gdm-password: pam_unix(gdm-password:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user=centos Jun 25 15:49:47 localhost pam: gdm-password: pam_unix(gdm-password:session): session opened for user centos by (uid=0) Jun 25 15:49:47 localhost polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session1 (system bus name :1.25, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Jun 25 15:49:49 localhost polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session2 (system bus name :1.46 [/usr/libexec/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Jun 25 15:50:31 localhost sshd[2732]: Accepted password for root from 192.168.88.1 port 49399 ssh2 Jun 25 15:50:31 localhost sshd[2732]: pam_unix(sshd:session): session opened for user root by (uid=0) Jun 25 15:52:29 localhost sshd[2766]: Accepted password for root from 192.168.88.1 port 49420 ssh2 Jun 25 15:52:29 localhost sshd[2766]: pam_unix(sshd:session): session opened for user root by (uid=0) Jun 25 15:52:29 localhost sshd[2766]: subsystem request for sftp Jun 25 15:52:42 localhost sshd[2766]: subsystem request for sftp Jun 25 15:53:15 localhost useradd[2783]: new group: name=taokey, GID=501 Jun 25 15:53:15 localhost useradd[2783]: new user: name=taokey, UID=501, GID=501, home=/home/taokey, shell=/bin/bash Jun 25 15:55:42 localhost passwd: pam_unix(passwd:chauthtok): password changed for taokey Jun 25 15:55:42 localhost passwd: gkr-pam: couldn't update the 'login' keyring password: no old password was entered Jun 25 16:02:43 localhost vsftpd[2881]: pam_userdb(vsftpd.vu:auth): user_lookup: could not open database `/etc/vsftpd/vftpuser#015': No such file or directory Jun 25 16:03:10 localhost vsftpd[2884]: pam_userdb(vsftpd.vu:auth): user_lookup: could not open database `/etc/vsftpd/vftpuser#015': No such file or directory 上面是日志 /var/log/secure 本人仿照一篇博客安装结果总是出现登录失败,selinux 都关闭了。配置和安装地址:https://www.linuxidc.com/Linux/2015-02/114192.htm
在Windows不能访问Linux上的ftp怎么办?
![怎么解决](https://img-ask.csdn.net/upload/201611/07/1478514705_846141.jpg) 是Linux防火墙的问题吗? 还是ftp配置有问题? ![图片说明](https://img-ask.csdn.net/upload/201611/07/1478514799_723261.jpg) ftp: [root@VM_49_217_centos ~]# vi /etc/vsftpd/vsftpd.conf # Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is NOT an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's # capabilities. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=NO # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022 # # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # The target log file can be vsftpd_log_file or xferlog_file. # This depends on setting xferlog_std_format parameter xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # The name of log file when xferlog_enable=YES and xferlog_std_format=YES # WARNING - changing this filename affects /etc/logrotate.d/vsftpd.log xferlog_file=/var/log/vsftpd.log # # Switches between logging into vsftpd_log_file and xferlog_file files. # NO writes to vsftpd_log_file, YES to xferlog_file xferlog_std_format=YES # # You may change the default value for timing out an idle session. #idle_session_timeout=600 # # You may change the default value for timing out a data connection. #data_connection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code is non-trivial). Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Beware that on some FTP servers, ASCII support allows a denial of service # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd # predicted this attack and has always been safe, reporting the size of the # raw file. # ASCII mangling is a horrible feature of the protocol. #ascii_upload_enable=YES #ascii_download_enable=YES # # You may fully customise the login banner string: #ftpd_banner=Welcome to blah FTP service. # # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd/banned_emails # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). #chroot_local_user=YES chroot_list_enable=YES # (default follows) chroot_list_file=/etc/vsftpd/chroot_list # # You may activate the "-R" option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume # the presence of the "-R" option, so there is a strong case for enabling it. #ls_recurse_enable=YES # # When "listen" directive is enabled, vsftpd runs in standalone mode and # listens on IPv4 sockets. This directive cannot be used in conjunction # with the listen_ipv6 directive. listen=YES # # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 # sockets, you must run two copies of vsftpd with two configuration files. # Make sure, that one of the listen options is commented !! #listen_ipv6=YES pam_service_name=vsftpd userlist_enable=YES tcp_wrappers=YES pasv_min_port=30000 pasv_max_port=30010 reverse_lookup_enable=NO
关于简单的ftp读取服务器信息读取不了的问题
部分客户端 ckage FTPSERVE;import java.io.*;import java.net.*;public class FTPClient { public static void main(String[] args) throws IOException{ Socket socket = new Socket("127.0.0.1", 3030); Socket dataSocket = null; BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream())); PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream())); String response = reader.readLine();//收取来自服务器的连接成功消息 System.out.println(response); BufferedReader sin = new BufferedReader(new InputStreamReader(System.in)); String command=null; boolean flag=true; while(true){ System.out.println("input:"); command=sin.readLine(); writer.println(command); writer.flush(); response=reader.readLine(); System.out.println("来自服务器:"+response); if(response.startsWith("230")) break; } while(true){ System.out.println("开启:pasv"); command=sin.readLine(); writer.println(command); writer.flush(); response=reader.readLine(); System.out.println("来自服务器:"+response); if(response.startsWith("227")) break; } String[] info=response.split(","); int port_high=Integer.parseInt(info[4]); int port_low=Integer.parseInt(info[5]); dataSocket=new Socket("127.0.0.1",port_high*256+port_low); System.out.println("dataSocket: "+dataSocket.getLocalPort()); //从数据端口中接收数据 while(flag){ System.out.println("输入命令:"); command=sin.readLine(); if(command.toUpperCase().startsWith("LIST")) {writer.println(command); writer.flush(); response=reader.readLine(); System.out.println("来自服务器:"+response); BufferedReader br = new BufferedReader(new InputStreamReader(dataSocket.getInputStream())); String rs = br.readLine(); while(rs!=null){ System.out.println("来自服务器:"+rs); } response=reader.readLine(); System.out.println("来自服务器:"+response); } 部分服务器 if(command.toUpperCase().startsWith("LIST")){ if(tempsocket==null){ pw.println("请打开被动模式连接数据端口!"); pw.flush(); } else{ list(tempsocket); continue; } } //设置用户的工作目录,即上传和下载文件的位置 private void list(Socket tempsocket) { System.out.println("("+UserName+") ("+clientIp+")> LIST"); try{ pw.println("150 Opening data channel for directory list."); pw.flush(); System.out.println("("+UserName+") ("+clientIp+")> 150 Opening data channel for directory list."); PrintWriter pwr = null; try { pwr= new PrintWriter(new OutputStreamWriter(tempsocket.getOutputStream())); FtpUtil.getDetailList(pwr, dir); } catch (IOException e) { e.printStackTrace(); } try { tempsocket.close(); pwr.close(); } catch (IOException e) { e.printStackTrace(); } pw.println("226 Transfer OK"); pw.flush(); System.out.println("("+UserName+") ("+clientIp+")> 226 Transfer OK"); } catch (Exception e){ pw.println("503 Bad sequence of commands."); pw.flush(); System.out.println("("+UserName+") ("+clientIp+")> 503 Bad sequence of commands."); e.printStackTrace(); } } class FtpUtil { public static void getDetailList(PrintWriter pw, String path){ System.out.println("获取目录中……"); File dir = new File(path); if (!dir.isDirectory()) { System.out.println("500 No such file or directory./r/n"); pw.println("500 No such file or directory./r/n"); } File[] files = dir.listFiles(); pw.println("total:" + files.length); System.out.println("total:" + files.length); pw.println(); pw.flush(); String modifyDate; for (int i = 0; i < files.length; i++) { modifyDate = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss") .format(new Date(files[i].lastModified())); if (files[i].isDirectory()) { pw.println("drwxr-xr-x ftp ftp 0 " + modifyDate + " " + files[i].getName()); pw.println(); System.out.println("drwxr-xr-x ftp ftp 0 " + modifyDate + " " + files[i].getName()); } else { pw.println("-rw-r-r--1 ftp ftp " + files[i].length() + " " + modifyDate + " " + files[i].getName()); pw.println(); System.out.println("-rw-r-r--1 ftp ftp " + files[i].length() + " " + modifyDate + " " + files[i].getName()); } pw.flush(); } } } 问题是当我输入list时,服务器端会显示出文件列表,但是在客户端显示不出任何,百度了,但是没有解决,,,
proftp服务器接收上百个客户端传输图片,登录特别慢,以下是服务配置,怎么解决
# This is a basic ProFTPD configuration file (rename it to # 'proftpd.conf' for actual use. It establishes a single server # and a single anonymous login. It assumes that you have a user/group # "nobody" and "ftp" for normal operation and anon. ServerName "ProFTPD Default Installation" ServerType standalone DefaultServer on # Port 21 is the standard FTP port. Port 21 TransferLog /var/log/proftplog MaxClientsPerHost 50 MaxClients 10000 UseReverseDNS off MaxLoginAttempts 10 TimeoutIdle 600 #SyslogLevel emerg #SystemLog /var/log/proftpSystem.log #UseEncoding UTF-8 GBK # Don't use IPv6 support by default. UseIPv6 off # Umask 022 is a good standard umask to prevent new dirs and files # from being group and world writable. Umask 022 # To prevent DoS attacks, set the maximum number of child processes # to 30. If you need to allow more than 30 concurrent connections # at once, simply increase this value. Note that this ONLY works # in standalone mode, in inetd mode you should use an inetd server # that allows you to limit maximum number of processes per service # (such as xinetd). MaxInstances 10000 # Set the user and group under which the server will run. User nobody Group nobody # To cause every FTP user to be "jailed" (chrooted) into their home # directory, uncomment this line. DefaultRoot ~ # Normally, we want files to be overwriteable. AllowOverwrite on # Bar use of SITE CHMOD by default <Limit SITE_CHMOD> DenyAll </Limit> <Directory /home/share> <Limit ALL> AllowAll </Limit> </Directory> # A basic anonymous configuration, no upload directories. If you do not # want anonymous users, simply delete this entire <Anonymous> section. <Anonymous ~ftp> User ftp Group ftp # We want clients to be able to login with "anonymous" as well as "ftp" # UserAlias anonymous ftp # Limit the maximum number of anonymous logins MaxClients 10000 # We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayChdir .message # Limit WRITE everywhere in the anonymous chroot <Limit WRITE> DenyAll </Limit> </Anonymous>
新网VPS没有绑定域名 不能通过ip访问?
新网vps, redhat, apache ssh没有问题,防火墙设置把所有的都关掉了(用setup命令操作的) **没有绑定域名,因为域名还没选好** netstat也查过了,两个端口都在 netstat -tulpn | grep :80 netstat -tulpn | grep :8080 ssh 后,使用下面这个命令可以得到index.html中的内容, GET http://我的ip/index.html GET http://我的ip:8080/index.html (启动的另一个apache instance,端口设置为8080) 但是浏览器中输入http://我的ip/index.html 就没有反应 请问Linux和apache配置方面还有什么要注意的? 是不是新网、ISP提供商禁止了ip方式访问?(因为我看到国内外论坛上都提到过服务商会吧IP问80端口禁止) 下面是httpd.conf # # This is the main Apache 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. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # 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 "/etc/httpd" will be interpreted by the # server as "/etc/httpd/logs/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # Don't give away too much information about all the subcomponents # we are running. Comment out this line if you don't mind remote sites # finding out what major optional modules you are running ServerTokens OS # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/etc/httpd" # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile run/httpd.pid # # Timeout: The number of seconds before receives and sends time out. # Timeout 120 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # ServerLimit: maximum value for MaxClients for the lifetime of the server # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 </IfModule> # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves <IfModule worker.c> StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to 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 (0.0.0.0) # #Listen 12.34.56.78:80 Listen 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 auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_alias_module modules/mod_authn_alias.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so LoadModule env_module modules/mod_env.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule cgi_module modules/mod_cgi.so LoadModule version_module modules/mod_version.so # # The following modules are not loaded by default: # #LoadModule cern_meta_module modules/mod_cern_meta.so #LoadModule asis_module modules/mod_asis.so # # Load config files from the config directory "/etc/httpd/conf.d". # Include conf.d/*.conf # # ExtendedStatus controls whether Apache will generate "full" status # information (ExtendedStatus On) or just basic information (ExtendedStatus # Off) when the "server-status" handler is called. The default is Off. # #ExtendedStatus On # # 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. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don't use Group #-1 on these systems! # User apache Group apache ### Section 2: '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 root@localhost # # 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 this is not set to valid DNS name for your host, server-generated # redirections will not work. See also the UseCanonicalName directive. # # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # #ServerName www.example.com:80 # eric add ServerName 我的ip!!!! # eric add end # # UseCanonicalName: Determines how Apache constructs self-referencing # URLs and the SERVER_NAME and SERVER_PORT variables. # When set "Off", Apache will use the Hostname and Port supplied # by the client. When set "On", Apache will use the value of the # ServerName directive. # UseCanonicalName Off # # 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 "/var/www/html" # # 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 None </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 "/var/www/html"> # # 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 Indexes 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 None # # Controls who can get stuff from this server. # Order allow,deny Allow from all #Deny from all </Directory> # # UserDir: The name of the directory that is appended onto a user's home # directory if a ~user request is received. # # The path to the end user account 'public_html' directory must be # accessible to the webserver userid. This usually means that ~userid # must have permissions of 711, ~userid/public_html must have permissions # of 755, and documents contained therein must be world-readable. # Otherwise, the client will only receive a "403 Forbidden" message. # # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden # <IfModule mod_userdir.c> # # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # UserDir disable # # To enable requests to /~user/ to serve the user's public_html # directory, remove the "UserDir disable" line above, and uncomment # the following line instead: # #UserDir public_html </IfModule> # # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # #<Directory /home/*/public_html> # AllowOverride FileInfo AuthConfig Limit # Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec # <Limit GET POST OPTIONS> # Order allow,deny # Allow from all # </Limit> # <LimitExcept GET POST OPTIONS> # Order deny,allow # Deny from all # </LimitExcept> #</Directory> # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # # The index.html.var file (a type-map) is used to deliver content- # negotiated documents. The MultiViews Option can be used for the # same purpose, but it is much slower. # DirectoryIndex index.html index.html.var # # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> # # TypesConfig describes where the mime.types file (or equivalent) is # to be found. # TypesConfig /etc/mime.types # # DefaultType is 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 # # 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. # <IfModule mod_mime_magic.c> # MIMEMagicFile /usr/share/magic.mime MIMEMagicFile conf/magic </IfModule> # # HostnameLookups: Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). # The default is off because it'd be overall better for the net if people # had to knowingly turn this feature on, since enabling it means that # each client request will result in AT LEAST one lookup request to the # nameserver. # HostnameLookups Off # # EnableMMAP: Control whether memory-mapping is used to deliver # files (assuming that the underlying OS supports it). # The default is on; turn this off if you serve from NFS-mounted # filesystems. On some systems, turning it off (regardless of # filesystem) can improve performance; for details, please see # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap # #EnableMMAP off # # EnableSendfile: Control whether the sendfile kernel support is # used to deliver files (assuming that the OS supports it). # The default is on; turn this off if you serve from NFS-mounted # filesystems. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile # #EnableSendfile off # # 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 # # 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 LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent # "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this # requires the mod_logio module to be loaded. #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio # # 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 would like to have separate agent and referer logfiles, uncomment # the following directives. # #CustomLog logs/referer_log referer #CustomLog logs/agent_log agent # # For a single logfile with access, agent, and referer information # (Combined Logfile Format), use the following directive: # CustomLog logs/access_log combined # # Optionally add a line containing the server version and virtual host # name to server-generated pages (internal error documents, FTP directory # listings, mod_status and mod_info output etc., but not CGI generated # documents or custom error documents). # Set to "EMail" to also include a mailto: link to the ServerAdmin. # Set to one of: On | Off | EMail # ServerSignature On # # Aliases: Add here as many aliases as you need (with no limit). The format is # Alias fakename realname # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So "/icons" isn't aliased in this # example, only "/icons/". If the fakename is slash-terminated, then the # realname must also be slash terminated, and if the fakename omits the # trailing slash, the realname must also omit it. # # We include the /icons/ alias for FancyIndexed directory listings. If you # do not use FancyIndexing, you may comment this out. # Alias /icons/ "/var/www/icons/" <Directory "/var/www/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> # # WebDAV module configuration section. # <IfModule mod_dav_fs.c> # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb </IfModule> # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname 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/ "/var/www/cgi-bin/" # # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "/var/www/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> # # Redirect allows you to tell clients about documents which used to exist in # your server's namespace, but do not anymore. This allows you to tell the # clients where to look for the relocated document. # Example: # Redirect permanent /foo http://www.example.com/bar # # Directives controlling the display of server-generated directory listings. # # # IndexOptions: Controls the appearance of server-generated directory # listings. # IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable # # AddIcon* directives tell the server which icon to show for different # files or filename extensions. These are only displayed for # FancyIndexed directories. # AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ # # DefaultIcon is which icon to show for files which do not have an icon # explicitly set. # DefaultIcon /icons/unknown.gif # # AddDescription allows you to place a short description after a file in # server-generated indexes. These are only displayed for FancyIndexed # directories. # Format: AddDescription "description" filename # #AddDescription "GZIP compressed document" .gz #AddDescription "tar archive" .tar #AddDescription "GZIP compressed tar archive" .tgz # # ReadmeName is the name of the README file the server will look for by # default, and append to directory listings. # # HeaderName is the name of a file which should be prepended to # directory indexes. ReadmeName README.html HeaderName HEADER.html # # IndexIgnore is a set of filenames which directory indexing should ignore # and not include in the listing. Shell-style wildcarding is permitted. # IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t # # DefaultLanguage and AddLanguage allows you to specify the language of # a document. You can then use content negotiation to give a browser a # file in a language the user can understand. # # Specify a default language. This means that all data # going out without a specific language tag (see below) will # be marked with this one. You probably do NOT want to set # this unless you are sure it is correct for all cases. # # * It is generally better to not mark a page as # * being a certain language than marking it with the wrong # * language! # # DefaultLanguage nl # # Note 1: The suffix does not have to be the same as the language # keyword --- those with documents in Polish (whose net-standard # language code is pl) may wish to use "AddLanguage pl .po" to # avoid the ambiguity with the common suffix for perl scripts. # # Note 2: The example entries below illustrate that in some cases # the two character 'Language' abbreviation is not identical to # the two character 'Country' code for its country, # E.g. 'Danmark/dk' versus 'Danish/da'. # # Note 3: In the case of 'ltz' we violate the RFC by using a three char # specifier. There is 'work in progress' to fix this and get # the reference data for rfc1766 cleaned up. # # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl) # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de) # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja) # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn) # Norwegian (no) - Polish (pl) - Portugese (pt) # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv) # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW) # AddLanguage ca .ca AddLanguage cs .cz .cs AddLanguage da .dk AddLanguage de .de AddLanguage el .el AddLanguage en .en AddLanguage eo .eo AddLanguage es .es AddLanguage et .et AddLanguage fr .fr AddLanguage he .he AddLanguage hr .hr AddLanguage it .it AddLanguage ja .ja AddLanguage ko .ko AddLanguage ltz .ltz AddLanguage nl .nl AddLanguage nn .nn AddLanguage no .no AddLanguage pl .po AddLanguage pt .pt AddLanguage pt-BR .pt-br AddLanguage ru .ru AddLanguage sv .sv AddLanguage zh-CN .zh-cn AddLanguage zh-TW .zh-tw # # LanguagePriority allows you to give precedence to some languages # in case of a tie during content negotiation. # # Just list the languages in decreasing order of preference. We have # more or less alphabetized them here. You probably want to change this. # LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW # # ForceLanguagePriority allows you to serve a result page rather than # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback) # [in case no accepted languages matched the available variants] # ForceLanguagePriority Prefer Fallback # # Specify a default charset for all content served; this enables # interpretation of all content as UTF-8 by default. To use the # default browser choice (ISO-8859-1), or to allow the META tags # in HTML content to override this choice, comment out this # directive: # AddDefaultCharset UTF-8 # # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types. # #AddType application/x-tar .tgz # # AddEncoding allows you to have certain browsers uncompress # information on the fly. Note: Not all browsers support this. # Despite the name similarity, the following Add* directives have nothing # to do with the FancyIndexing customization directives above. # #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 files that include their own HTTP headers: # #AddHandler send-as-is asis # # For type maps (negotiated resources): # (This is enabled by default to allow the Apache "It Worked" page # to be distributed in multiple languages.) # 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 # # Action lets you define media types that will execute a script whenever # a matching file is called. This eliminates the need for repeated URL # pathnames for oft-used CGI file processors. # Format: Action media/type /cgi-script/location # Format: Action handler-name /cgi-script/location # # # 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.example.com/subscription_info.html # # # Putting this all together, we can internationalize error responses. # # We use Alias to redirect any /error/HTTP_<error>.html.var response to # our collection of by-error message multi-language collections. We use # includes to substitute the appropriate text. # # You can modify the messages' appearance without changing any of the # default HTTP_<error>.html.var files by adding the line: # # Alias /error/include/ "/your/include/path/" # # which allows you to create your own set of files by starting with the # /var/www/error/include/ files and # copying them to /your/include/path/, even on a per-VirtualHost basis. # Alias /error/ "/var/www/error/" <IfModule mod_negotiation.c> <IfModule mod_include.c> <Directory "/var/www/error"> AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback </Directory> # ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var # ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var # ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var # ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var # ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var # ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var # ErrorDocument 410 /error/HTTP_GONE.html.var # ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var # ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var # ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var # ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var # ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var # ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var # ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var # ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var # ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var # ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var </IfModule> </IfModule> # # The following directives modify normal HTTP response behavior to # handle known problems with browser implementations. # BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 # # The following directive disables redirects on non-GET requests for # a directory that does not include the trailing slash. This fixes a # problem with Microsoft WebFolders which does not appropriately handle # redirects for folders with DAV methods. # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV. # BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "MS FrontPage" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully BrowserMatch "^gnome-vfs/1.0" redirect-carefully BrowserMatch "^XML Spy" redirect-carefully BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully # # Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Change the ".example.com" to match your domain to enable. # #<Location /server-status> # SetHandler server-status # Order deny,allow # Deny from all # Allow from .example.com #</Location> # # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".example.com" to match your domain to enable. # #<Location /server-info> # SetHandler server-info # Order deny,allow # Deny from all # Allow from .example.com #</Location> # # Proxy Server directives. Uncomment the following lines to # enable the proxy server: # #<IfModule mod_proxy.c> #ProxyRequests On # #<Proxy *> # Order deny,allow # Deny from all # Allow from .example.com #</Proxy> # # Enable/disable the handling of HTTP/1.1 "Via:" headers. # ("Full" adds the server version; "Block" removes all outgoing Via: headers) # Set to one of: Off | On | Full | Block # #ProxyVia On # # To enable a cache of proxied content, uncomment the following lines. # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details. # #<IfModule mod_disk_cache.c> # CacheEnable disk / # CacheRoot "/var/cache/mod_proxy" #</IfModule> # #</IfModule> # End of proxy directives. ### Section 3: Virtual Hosts # # VirtualHost: If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.2/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # #NameVirtualHost *:80 # # NOTE: NameVirtualHost cannot be used without a port specifier # (e.g. :80) if mod_ssl is being used, due to the nature of the # SSL protocol. # # # 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@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost>
phpstudy无法目录显示怎么解决
phpstudy无法目录显示怎么解决,允许目录列表已经打勾,还是一直显示403 ![图片说明](https://img-ask.csdn.net/upload/201904/04/1554342078_650791.png) 这是目录截图 ![图片说明](https://img-ask.csdn.net/upload/201904/04/1554342131_506516.png) 配置站点 ![图片说明](https://img-ask.csdn.net/upload/201904/04/1554342429_719707.png) 这是httpd.conf文件内容 ``` # power by phpStudy 2013 by 网址:www.phpStudy.net # # 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.4/> for detailed information. # In particular, see # <URL:http://httpd.apache.org/docs/2.4/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/access_log" # with ServerRoot set to "/usr/local/apache2" will be interpreted by the # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" # will be interpreted as '/logs/access_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 specify a local disk on the # Mutex directive, if file-based mutexes are used. If you wish to share the # same ServerRoot for multiple httpd daemons, you will need to change at # least PidFile. # ServerRoot "D:/phpStudy/Apache" # # Mutex: Allows you to set the mutex mechanism and mutex file directory # for individual mutexes, or change the global defaults # # Uncomment and change the directory if mutexes are file-based and the default # mutex file directory is not on a local disk or is not appropriate for some # other reason. # # Mutex default:logs # # 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:80 Listen 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 access_compat_module modules/mod_access_compat.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule allowmethods_module modules/mod_allowmethods.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_anon_module modules/mod_authn_anon.so LoadModule authn_core_module modules/mod_authn_core.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authn_socache_module modules/mod_authn_socache.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule authz_core_module modules/mod_authz_core.so #LoadModule authz_dbd_module modules/mod_authz_dbd.so #LoadModule authz_dbm_module modules/mod_authz_dbm.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 buffer_module modules/mod_buffer.so #LoadModule cache_module modules/mod_cache.so #LoadModule cache_disk_module modules/mod_cache_disk.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 data_module modules/mod_data.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 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 heartbeat_module modules/mod_heartbeat.so #LoadModule heartmonitor_module modules/mod_heartmonitor.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 lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.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_debug_module modules/mod_log_debug.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule lua_module modules/mod_lua.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_express_module modules/mod_proxy_express.so #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_html_module modules/mod_proxy_html.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so #LoadModule ratelimit_module modules/mod_ratelimit.so #LoadModule reflector_module modules/mod_reflector.so #LoadModule remoteip_module modules/mod_remoteip.so #LoadModule request_module modules/mod_request.so #LoadModule reqtimeout_module modules/mod_reqtimeout.so LoadModule rewrite_module modules/mod_rewrite.so #LoadModule sed_module modules/mod_sed.so #LoadModule session_module modules/mod_session.so #LoadModule session_cookie_module modules/mod_session_cookie.so #LoadModule session_crypto_module modules/mod_session_crypto.so #LoadModule session_dbd_module modules/mod_session_dbd.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so #LoadModule socache_dbm_module modules/mod_socache_dbm.so #LoadModule socache_memcache_module modules/mod_socache_memcache.so LoadModule socache_shmcb_module modules/mod_socache_shmcb.so #LoadModule speling_module modules/mod_speling.so LoadModule ssl_module modules/mod_ssl.so LoadModule fcgid_module modules/mod_fcgid.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 #LoadModule watchdog_module modules/mod_watchdog.so #LoadModule xml2enc_module modules/mod_xml2enc.so <IfModule unixd_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 daemon Group daemon </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 admin@phpStudy.net # # 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 # # Deny access to the entirety of your server's filesystem. You must # explicitly permit access to web content directories in other # <Directory> blocks below. # DocumentRoot "D:\phpStudy\WWW" <Directory /> Options +Indexes +FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </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. # # # 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. # # # 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. # <Files ".ht*"> Require all denied </Files> # # 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" #ErrorLog "|bin/rotatelogs.exe -l logs/error-%Y-%m-%d.log 2M" # # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel error <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.example.com/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:/phpStudy/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 cgisock </IfModule> # # "c:/Apache4/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "D:/phpStudy/Apache/cgi-bin"> AllowOverride None Options None Require all granted </Directory> <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 #AddType application/x-httpd-php .php .phtml </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.example.com/subscription_info.html # # # MaxRanges: Maximum number of Ranges in a request before # returning the entire resource, or one of the special # values 'default', 'none' or 'unlimited'. # Default setting is to accept 200 Ranges. #MaxRanges unlimited # # EnableMMAP and EnableSendfile: On systems that support it, # memory-mapping or the sendfile syscall may be 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. # Defaults: EnableMMAP On, EnableSendfile Off # #EnableMMAP off #EnableSendfile on # 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 Include conf/extra/httpd-php-fcgid55.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 hosts Include 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.conf # Configure mod_proxy_html to understand HTML4/XHTML1 #<IfModule proxy_html_module> #Include conf/extra/proxy-html.conf #</IfModule> Include 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. # SSLSessionCache "shmcb:logs/ssl_scache(512000)" SSLSessionCacheTimeout 300 <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> # Deal with user agents that deliberately violate open standards # <IfModule setenvif_module> BrowserMatch "MSIE 10.0;" bad_DNT </IfModule> <IfModule headers_module> RequestHeader unset DNT env=bad_DNT </IfModule> <VirtualHost *:80> DocumentRoot "D:\phpStudy\WWW" ServerName ye.com </VirtualHost> ``` 这是vhosts.conf文件内容 ``` <VirtualHost _default_:80> DocumentRoot "D:/phpStudy/WWW" </VirtualHost> <Directory "D:/phpStudy/WWW"> Options +Indexes +FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> DocumentRoot "D:\PHP\Test" ServerName 127.0.0.2 ServerAlias </VirtualHost> <Directory "D:\PHP\Test"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> DocumentRoot "D:\phalcon-tools\store" ServerName 127.0.0.3 ServerAlias </VirtualHost> <Directory "D:\phalcon-tools\store"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> DocumentRoot "D:\phpStudy\WWW\admin" ServerName www.ye.com ServerAlias 127.0.0.99 </VirtualHost> <Directory "D:\phpStudy\WWW\admin"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> DocumentRoot "D:\phpStudy\WWW\aaa" ServerName 127.0.0.6 ServerAlias </VirtualHost> <Directory "D:\phpStudy\WWW\aaa"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> ```
大佬帮我看看哪里配置错了,弄了好久没整出来
我的配置哪里出问题了吗,确定代码没有问题的,布置在一个新的服务器就出现这个报错, Bad Request Your browser sent a request that this server could not understand. Request header field is missing ':' separator. 这是Apache的配置 ``` # # 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 "/usr/local/apache2" will be interpreted by the # server as "/usr/local/apache2/logs/foo_log". # # 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 "/usr/local/apache2" # # 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:80 Listen 8008 PHPIniDir "/etc/php.ini" # # 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 auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authn_alias_module modules/mod_authn_alias.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbm_module modules/mod_authn_dbm.so #LoadModule authn_default_module modules/mod_authn_default.so #LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_owner_module modules/mod_authz_owner.so #LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_dbm_module modules/mod_authz_dbm.so #LoadModule authz_default_module modules/mod_authz_default.so LoadModule php5_module modules/libphp5.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so #LoadModule include_module modules/mod_include.so #LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so #LoadModule env_module modules/mod_env.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so #LoadModule setenvif_module modules/mod_setenvif.so #LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so #LoadModule status_module modules/mod_status.so #LoadModule autoindex_module modules/mod_autoindex.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule negotiation_module modules/mod_negotiation.so #LoadModule dir_module modules/mod_dir.so #LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule cache_module modules/mod_cache.so #LoadModule suexec_module modules/mod_suexec.so #LoadModule disk_cache_module modules/mod_disk_cache.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule mem_cache_module modules/mod_mem_cache.so #LoadModule cgi_module modules/mod_cgi.so #LoadModule version_module modules/mod_version.so #LoadModule ssl_module modules/mod_ssl.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 daemon User apache #Group daemon Group apache #</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 root@localhost # # 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 192.168.3.39:8008 # UseCanonicalName Off # 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 "/usr/local/apache2/htdocs" DocumentRoot "/var/www/html/ippbx" # # 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 </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. # TraceEnable off # # This should be changed to whatever you set DocumentRoot to. # #<Directory "/usr/local/apache2/htdocs"> <Directory "/var/www/html/ippbx"> # # 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 Indexes FollowSymLinks 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 None 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 session.php #DirectoryIndex index.php </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.example.com/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/ "/usr/local/apache2/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> # # "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # <Directory "/usr/local/apache2/cgi-bin"> #AllowOverride None 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 # AddDefaultCharset UTF-8 # 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 AddDefaultCharset UTF-8 AddHandler php5-script php AddType application/x-httpd-php .php .php5 AddType application/x-httpd-php-source .phps # # 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.example.com/subscription_info.html # # # 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 hosts #Include 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.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. # <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> NameVirtualHost *:8008 <VirtualHost *:8008> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ca.crt SSLCertificateKeyFile /etc/pki/tls/private/ca.key # <Directory /var/www/vhosts/yoursite.com/httpsdocs> # AllowOverride All # </Directory> # DocumentRoot /var/www/vhosts/yoursite.com/httpsdocs # serverName yoursite.com </VirtualHost> ```
请教apache重启问题
AIX Version 5环境 <br />不是自带的apache <br />用apachectl start启动的时候 <br />没有显示错误 <br />实际没有启动 <br />原因:http://192.168.108.12:8081/ 连接失败 <br /> <br />httpd -t 测试结果 ok! <br /> <br />httpd.conf内容如下 <br />------------------------ <br /># <br /># Based upon the NCSA server configuration files originally by Rob McCool. <br /># <br /># This is the main Apache server configuration file.  It contains the <br /># configuration directives that give the server its instructions. <br /># See &lt;url:http: httpd.apache.org="" docs="" 2.0=""/&gt; for detailed information about <br /># the directives. <br /># <br /># Do NOT simply read the instructions in here without understanding <br /># what they do.  They're here only as hints or reminders.  If you are unsure <br /># consult the online docs. You have been warned.  <br /># <br /># The configuration directives are grouped into three basic sections: <br />#  1. Directives that control the operation of the Apache server process as a <br />#     whole (the 'global environment'). <br />#  2. Directives that define the parameters of the 'main' or 'default' server, <br />#     which responds to requests that aren't handled by a virtual host. <br />#     These directives also provide default values for the settings <br />#     of all virtual hosts. <br />#  3. Settings for virtual hosts, which allow Web requests to be sent to <br />#     different IP addresses or hostnames and have them handled by the <br />#     same Apache server process. <br /># <br /># Configuration and logfile names: If the filenames you specify for many <br /># of the server's control files begin with "/" (or "drive:/" for Win32), the <br /># server will use that explicit path.  If the filenames do *not* begin <br /># with "/", the value of ServerRoot is prepended -- so "logs/foo.log" <br /># with ServerRoot set to "/home/weblogic/apache/" will be interpreted by the <br /># server as "/home/weblogic/apache//logs/foo.log". <br /># <br /> <br />### Section 1: Global Environment <br /># <br /># The directives in this section affect the overall operation of Apache, <br /># such as the number of concurrent requests it can handle or where it <br /># can find its configuration files. <br /># <br /> <br /># <br /># ServerRoot: The top of the directory tree under which the server's <br /># configuration, error, and log files are kept. <br /># <br /># NOTE!  If you intend to place this on an NFS (or otherwise network) <br /># mounted filesystem then please read the LockFile documentation (available <br /># at &lt;url:http: httpd.apache.org="" docs="" 2.0="" mod="" mpm_common.html#lockfile=""&gt;); <br /># you will save yourself a lot of trouble. <br /># <br /># Do NOT add a slash at the end of the directory path. <br /># <br />ServerRoot "/home/weblogic/apache/" <br /> <br /># <br /># The accept serialization lock file MUST BE STORED ON A LOCAL DISK. <br /># <br />&lt;ifmodule !mpm_winnt.c=""&gt; <br />&lt;ifmodule !mpm_netware.c=""&gt; <br />#LockFile logs/accept.lock <br />&lt;/ifmodule&gt; <br />&lt;/ifmodule&gt; <br /> <br /># <br /># ScoreBoardFile: File used to store internal server process information. <br /># If unspecified (the default), the scoreboard will be stored in an <br /># anonymous shared memory segment, and will be unavailable to third-party <br /># applications. <br /># If specified, ensure that no two invocations of Apache share the same <br /># scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. <br /># <br />&lt;ifmodule !mpm_netware.c=""&gt; <br />&lt;ifmodule !perchild.c=""&gt; <br />#ScoreBoardFile logs/apache_runtime_status <br />&lt;/ifmodule&gt; <br />&lt;/ifmodule&gt; <br /> <br /> <br /># <br /># PidFile: The file in which the server should record its process <br /># identification number when it starts. <br /># <br />&lt;ifmodule !mpm_netware.c=""&gt; <br />PidFile logs/httpd.pid <br />&lt;/ifmodule&gt; <br /> <br /># <br /># Timeout: The number of seconds before receives and sends time out. <br /># <br />Timeout 300 <br /> <br /># <br /># KeepAlive: Whether or not to allow persistent connections (more than <br /># one request per connection). Set to "Off" to deactivate. <br /># <br />KeepAlive On <br /> <br /># <br /># MaxKeepAliveRequests: The maximum number of requests to allow <br /># during a persistent connection. Set to 0 to allow an unlimited amount. <br /># We recommend you leave this number high, for maximum performance. <br /># <br />MaxKeepAliveRequests 100 <br /> <br /># <br /># KeepAliveTimeout: Number of seconds to wait for the next request from the <br /># same client on the same connection. <br /># <br />KeepAliveTimeout 15 <br /> <br />## <br />## Server-Pool Size Regulation (MPM specific) <br />## <br /> <br /># prefork MPM <br /># StartServers: number of server processes to start <br /># MinSpareServers: minimum number of server processes which are kept spare <br /># MaxSpareServers: maximum number of server processes which are kept spare <br /># MaxClients: maximum number of server processes allowed to start <br /># MaxRequestsPerChild: maximum number of requests a server process serves <br />&lt;ifmodule prefork.c=""&gt; <br />StartServers         5 <br />MinSpareServers      5 <br />MaxSpareServers     10 <br />MaxClients         150 <br />MaxRequestsPerChild  0 <br />&lt;/ifmodule&gt; <br /> <br /># worker MPM <br /># StartServers: initial number of server processes to start <br /># MaxClients: maximum number of simultaneous client connections <br /># MinSpareThreads: minimum number of worker threads which are kept spare <br /># MaxSpareThreads: maximum number of worker threads which are kept spare <br /># ThreadsPerChild: constant number of worker threads in each server process <br /># MaxRequestsPerChild: maximum number of requests a server process serves <br />&lt;ifmodule worker.c=""&gt; <br />StartServers         2 <br />MaxClients         150 <br />MinSpareThreads     25 <br />MaxSpareThreads     75 <br />ThreadsPerChild     25 <br />MaxRequestsPerChild  0 <br />&lt;/ifmodule&gt; <br /> <br /># perchild MPM <br /># NumServers: constant number of server processes <br /># StartThreads: initial number of worker threads in each server process <br /># MinSpareThreads: minimum number of worker threads which are kept spare <br /># MaxSpareThreads: maximum number of worker threads which are kept spare <br /># MaxThreadsPerChild: maximum number of worker threads in each server process <br /># MaxRequestsPerChild: maximum number of connections per server process <br />&lt;ifmodule perchild.c=""&gt; <br />NumServers           5 <br />StartThreads         5 <br />MinSpareThreads      5 <br />MaxSpareThreads     10 <br />MaxThreadsPerChild  20 <br />MaxRequestsPerChild  0 <br />&lt;/ifmodule&gt; <br /> <br /># WinNT MPM <br /># ThreadsPerChild: constant number of worker threads in the server process <br /># MaxRequestsPerChild: maximum  number of requests a server process serves <br />&lt;ifmodule mpm_winnt.c=""&gt; <br />ThreadsPerChild 250 <br />MaxRequestsPerChild  0 <br />&lt;/ifmodule&gt; <br /> <br /># BeOS MPM <br /># StartThreads: how many threads do we initially spawn? <br /># MaxClients:   max number of threads we can have (1 thread == 1 client) <br /># MaxRequestsPerThread: maximum number of requests each thread will process <br />&lt;ifmodule beos.c=""&gt; <br />StartThreads               10 <br />MaxClients                 50 <br />MaxRequestsPerThread       10000 <br />&lt;/ifmodule&gt;    <br /> <br /># NetWare MPM <br /># ThreadStackSize: Stack size allocated for each worker thread <br /># StartThreads: Number of worker threads launched at server startup <br /># MinSpareThreads: Minimum number of idle threads, to handle request spikes <br /># MaxSpareThreads: Maximum number of idle threads <br /># MaxThreads: Maximum number of worker threads alive at the same time <br /># MaxRequestsPerChild: Maximum  number of requests a thread serves. It is <br />#                      recommended that the default value of 0 be set for this <br />#                      directive on NetWare.  This will allow the thread to <br />#                      continue to service requests indefinitely.                          <br />&lt;ifmodule mpm_netware.c=""&gt; <br />ThreadStackSize      65536 <br />StartThreads           250 <br />MinSpareThreads         25 <br />MaxSpareThreads        250 <br />MaxThreads            1000 <br />MaxRequestsPerChild      0 <br />MaxMemFree             100 <br />&lt;/ifmodule&gt; <br /> <br /># OS/2 MPM <br /># StartServers: Number of server processes to maintain <br /># MinSpareThreads: Minimum number of idle threads per process, <br />#                  to handle request spikes <br /># MaxSpareThreads: Maximum number of idle threads per process <br /># MaxRequestsPerChild: Maximum number of connections per server process <br />&lt;ifmodule mpmt_os2.c=""&gt; <br />StartServers           2 <br />MinSpareThreads        5 <br />MaxSpareThreads       10 <br />MaxRequestsPerChild    0 <br />&lt;/ifmodule&gt; <br /> <br /># <br /># Listen: Allows you to bind Apache to specific IP addresses and/or <br /># ports, instead of the default. See also the &lt;virtualhost&gt; <br /># directive. <br /># <br /># Change this to Listen on specific IP addresses as shown below to <br /># prevent Apache from glomming onto all bound IP addresses (0.0.0.0) <br /># <br />#Listen 12.34.56.78:80 <br /> <br />Listen 8081 <br /> <br /># <br /># Dynamic Shared Object (DSO) Support <br /># <br /># To be able to use the functionality of a module which was built as a DSO you <br /># have to place corresponding `LoadModule' lines at this location so the <br /># directives contained in it are actually available _before_ they are used. <br /># Statically compiled modules (those listed by `httpd -l') do not need <br /># to be loaded here. <br /># <br /># Example: <br /># LoadModule foo_module modules/mod_foo.so <br /># <br />LoadModule weblogic_module modules/mod_wl_20.so <br /> <br /># <br /># ExtendedStatus controls whether Apache will generate "full" status <br /># information (ExtendedStatus On) or just basic information (ExtendedStatus <br /># Off) when the "server-status" handler is called. The default is Off. <br /># <br />#ExtendedStatus On <br /> <br />### Section 2: 'Main' server configuration <br /># <br /># The directives in this section set up the values used by the 'main' <br /># server, which responds to any requests that aren't handled by a <br /># &lt;virtualhost&gt; definition.  These values also provide defaults for <br /># any &lt;virtualhost&gt; containers you may define later in the file. <br /># <br /># All of these directives may appear inside &lt;virtualhost&gt; containers, <br /># in which case these default settings will be overridden for the <br /># virtual host being defined. <br /># <br /> <br />&lt;ifmodule !mpm_winnt.c=""&gt; <br />&lt;ifmodule !mpm_netware.c=""&gt; <br /># <br /># If you wish httpd to run as a different user or group, you must run <br /># httpd as root initially and it will switch.  <br /># <br /># User/Group: The name (or #number) of the user/group to run httpd as. <br />#  . On SCO (ODT 3) use "User nouser" and "Group nogroup". <br />#  . On HPUX you may not be able to use shared memory as nobody, and the <br />#    suggested workaround is to create a user www and use that user. <br />#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) <br />#  when the value of (unsigned)Group is above 60000; <br />#  don't use Group #-1 on these systems! <br /># <br />User nobody <br />Group #-1 <br />&lt;/ifmodule&gt; <br />&lt;/ifmodule&gt; <br /> <br /># <br /># ServerAdmin: Your address, where problems with the server should be <br /># e-mailed.  This address appears on some server-generated pages, such <br /># as error documents.  e.g. admin@your-domain.com <br /># <br />ServerAdmin you@example.com <br /> <br /># <br /># ServerName gives the name and port that the server uses to identify itself. <br /># This can often be determined automatically, but we recommend you specify <br /># it explicitly to prevent problems during startup. <br /># <br /># If this is not set to valid DNS name for your host, server-generated <br /># redirections will not work.  See also the UseCanonicalName directive. <br /># <br /># If your host doesn't have a registered DNS name, enter its IP address here. <br /># You will have to access it by its address anyway, and this will make <br /># redirections work in a sensible way. <br /># <br /># ServerName www.example.com:80 <br /> <br /> <br /># <br /># UseCanonicalName: Determines how Apache constructs self-referencing <br /># URLs and the SERVER_NAME and SERVER_PORT variables. <br /># When set "Off", Apache will use the Hostname and Port supplied <br /># by the client.  When set "On", Apache will use the value of the <br /># ServerName directive. <br /># <br />UseCanonicalName Off <br /> <br /># <br /># DocumentRoot: The directory out of which you will serve your <br /># documents. By default, all requests are taken from this directory, but <br /># symbolic links and aliases may be used to point to other locations. <br /># <br />DocumentRoot "/home/weblogic/apache//htdocs" <br /> <br /># <br /># Each directory to which Apache has access can be configured with respect <br /># to which services and features are allowed and/or disabled in that <br /># directory (and its subdirectories). <br /># <br /># First, we configure the "default" to be a very restrictive set of <br /># features.  <br /># <br />&lt;directory&gt; <br />Options FollowSymLinks <br />AllowOverride None <br />&lt;/directory&gt; <br /> <br /># <br /># Note that from this point forward you must specifically allow <br /># particular features to be enabled - so if something's not working as <br /># you might expect, make sure that you have specifically enabled it <br /># below. <br /># <br /> <br /># <br /># This should be changed to whatever you set DocumentRoot to. <br /># <br />&lt;directory "="" home="" weblogic="" apache="" htdocs"=""&gt; <br /> <br /># <br /># Possible values for the Options directive are "None", "All", <br /># or any combination of: <br />#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews <br /># <br /># Note that "MultiViews" must be named *explicitly* --- "Options All" <br /># doesn't give it to you. <br /># <br /># The Options directive is both complicated and important.  Please see <br /># http://httpd.apache.org/docs/2.0/mod/core.html#options <br /># for more information. <br /># <br />Options Indexes FollowSymLinks <br /> <br /># <br /># AllowOverride controls what directives may be placed in .htaccess files. <br /># It can be "All", "None", or any combination of the keywords: <br />#   Options FileInfo AuthConfig Limit Indexes <br /># <br />AllowOverride None <br /> <br /># <br /># Controls who can get stuff from this server. <br /># <br />Order allow,deny <br />Allow from all <br /> <br />&lt;/directory&gt; <br /> <br /># <br /># UserDir: The name of the directory that is appended onto a user's home <br /># directory if a ~user request is received. <br /># <br />UserDir public_html <br /> <br /># <br /># Control access to UserDir directories.  The following is an example <br /># for a site where these directories are restricted to read-only. <br /># <br />#&lt;directory home="" *="" public_html=""&gt; <br />#    AllowOverride FileInfo AuthConfig Limit Indexes <br />#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <br />#    &lt;limit get="" post="" options="" propfind=""&gt; <br />#        Order allow,deny <br />#        Allow from all <br />#    &lt;/limit&gt; <br />#    &lt;limitexcept get="" post="" options="" propfind=""&gt; <br />#        Order deny,allow <br />#        Deny from all <br />#    &lt;/limitexcept&gt; <br />#&lt;/directory&gt; <br /> <br /># <br /># DirectoryIndex: sets the file that Apache will serve if a directory <br /># is requested. <br /># <br /># The index.html.var file (a type-map) is used to deliver content- <br /># negotiated documents.  The MultiViews Option can be used for the <br /># same purpose, but it is much slower. <br /># <br />DirectoryIndex index.html index.html.var <br /> <br /># <br /># AccessFileName: The name of the file to look for in each directory <br /># for additional configuration directives.  See also the AllowOverride <br /># directive. <br /># <br />AccessFileName .htaccess <br /> <br /># <br /># The following lines prevent .htaccess and .htpasswd files from being <br /># viewed by Web clients. <br /># <br />&lt;filesmatch "^\.ht"=""&gt; <br />Order allow,deny <br />Deny from all <br />&lt;/filesmatch&gt; <br /> <br /># <br /># TypesConfig describes where the mime.types file (or equivalent) is <br /># to be found. <br /># <br />TypesConfig conf/mime.types <br /> <br /># <br /># DefaultType is the default MIME type the server will use for a document <br /># if it cannot otherwise determine one, such as from filename extensions. <br /># If your server contains mostly text or HTML documents, "text/plain" is <br /># a good value.  If most of your content is binary, such as applications <br /># or images, you may want to use "application/octet-stream" instead to <br /># keep browsers from trying to display binary files as though they are <br /># text. <br /># <br />DefaultType text/plain <br /> <br /># <br /># The mod_mime_magic module allows the server to use various hints from the <br /># contents of the file itself to determine its type.  The MIMEMagicFile <br /># directive tells the module where the hint definitions are located. <br /># <br />&lt;ifmodule mod_mime_magic.c=""&gt; <br />MIMEMagicFile conf/magic <br />&lt;/ifmodule&gt; <br /> <br /># <br /># HostnameLookups: Log the names of clients or just their IP addresses <br /># e.g., www.apache.org (on) or 204.62.129.132 (off). <br /># The default is off because it'd be overall better for the net if people <br /># had to knowingly turn this feature on, since enabling it means that <br /># each client request will result in AT LEAST one lookup request to the <br /># nameserver. <br /># <br />HostnameLookups Off <br /> <br /># <br /># EnableMMAP: Control whether memory-mapping is used to deliver <br /># files (assuming that the underlying OS supports it). <br /># The default is on; turn this off if you serve from NFS-mounted <br /># filesystems.  On some systems, turning it off (regardless of <br /># filesystem) can improve performance; for details, please see <br /># http://httpd.apache.org/docs/2.0/mod/core.html#enablemmap <br /># <br />#EnableMMAP off <br /> <br /># <br /># EnableSendfile: Control whether the sendfile kernel support is <br /># used  to deliver files (assuming that the OS supports it). <br /># The default is on; turn this off if you serve from NFS-mounted <br /># filesystems.  Please see <br /># http://httpd.apache.org/docs/2.0/mod/core.html#enablesendfile <br /># <br />#EnableSendfile off <br /> <br /># <br /># ErrorLog: The location of the error log file. <br /># If you do not specify an ErrorLog directive within a &lt;virtualhost&gt; <br /># container, error messages relating to that virtual host will be <br /># logged here.  If you *do* define an error logfile for a &lt;virtualhost&gt; <br /># container, that host's errors will be logged there and not here. <br /># <br />ErrorLog logs/error_log <br /> <br /># <br /># LogLevel: Control the number of messages logged to the error_log. <br /># Possible values include: debug, info, notice, warn, error, crit, <br /># alert, emerg. <br /># <br />LogLevel warn <br /> <br /># <br /># The following directives define some format nicknames for use with <br /># a CustomLog directive (see below). <br /># <br />LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined <br />LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common <br />LogFormat "%{Referer}i -&gt; %U" referer <br />LogFormat "%{User-agent}i" agent <br /> <br /># You need to enable mod_logio.c to use %I and %O <br />#LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio <br /> <br /># <br /># The location and format of the access logfile (Common Logfile Format). <br /># If you do not define any access logfiles within a &lt;virtualhost&gt; <br /># container, they will be logged here.  Contrariwise, if you *do* <br /># define per-&lt;virtualhost&gt; access logfiles, transactions will be <br /># logged therein and *not* in this file. <br /># <br />CustomLog logs/access_log common <br /> <br /># <br /># If you would like to have agent and referer logfiles, uncomment the <br /># following directives. <br /># <br />#CustomLog logs/referer_log referer <br />#CustomLog logs/agent_log agent <br /> <br /># <br /># If you prefer a single logfile with access, agent, and referer information <br /># (Combined Logfile Format) you can use the following directive. <br /># <br />#CustomLog logs/access_log combined <br /> <br /># <br /># ServerTokens <br /># This directive configures what you return as the Server HTTP response <br /># Header. The default is 'Full' which sends information about the OS-Type <br /># and compiled in modules. <br /># Set to one of:  Full | OS | Minor | Minimal | Major | Prod <br /># where Full conveys the most information, and Prod the least. <br /># <br />ServerTokens Full <br /> <br /># <br /># Optionally add a line containing the server version and virtual host <br /># name to server-generated pages (internal error documents, FTP directory <br /># listings, mod_status and mod_info output etc., but not CGI generated <br /># documents or custom error documents). <br /># Set to "EMail" to also include a mailto: link to the ServerAdmin. <br /># Set to one of:  On | Off | EMail <br /># <br />ServerSignature On <br /> <br /># <br /># Aliases: Add here as many aliases as you need (with no limit). The format is <br /># Alias fakename realname <br /># <br /># Note that if you include a trailing / on fakename then the server will <br /># require it to be present in the URL.  So "/icons" isn't aliased in this <br /># example, only "/icons/".  If the fakename is slash-terminated, then the <br /># realname must also be slash terminated, and if the fakename omits the <br /># trailing slash, the realname must also omit it. <br /># <br /># We include the /icons/ alias for FancyIndexed directory listings.  If you <br /># do not use FancyIndexing, you may comment this out. <br /># <br />Alias /icons/ "/home/weblogic/apache//icons/" <br /> <br />&lt;directory "="" home="" weblogic="" apache="" icons"=""&gt; <br />Options Indexes MultiViews <br />AllowOverride None <br />Order allow,deny <br />Allow from all <br />&lt;/directory&gt; <br /> <br /># <br /># This should be changed to the ServerRoot/manual/.  The alias provides <br /># the manual, even if you choose to move your DocumentRoot.  You may comment <br /># this out if you do not care for the documentation. <br /># <br />AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/home/weblogic/apache//manual$1" <br /> <br />&lt;directory "="" home="" weblogic="" apache="" manual"=""&gt; <br />Options Indexes <br />AllowOverride None <br />Order allow,deny <br />Allow from all <br /> <br />&lt;files *.html=""&gt; <br />SetHandler type-map <br />&lt;/files&gt; <br /> <br />SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|ru)/ prefer-language=$1 <br />RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|ru)){2,}(/.*)?$ /manual/$1$2 <br />&lt;/directory&gt; <br /> <br /># <br /># ScriptAlias: This controls which directories contain server scripts. <br /># ScriptAliases are essentially the same as Aliases, except that <br /># documents in the realname directory are treated as applications and <br /># run by the server when requested rather than as documents sent to the client. <br /># The same rules about trailing "/" apply to ScriptAlias directives as to <br /># Alias. <br /># <br />ScriptAlias /cgi-bin/ "/home/weblogic/apache//cgi-bin/" <br /> <br />&lt;ifmodule mod_cgid.c=""&gt; <br /># <br /># Additional to mod_cgid.c settings, mod_cgid has Scriptsock &lt;path&gt; <br /># for setting UNIX socket for communicating with cgid. <br /># <br />#Scriptsock            logs/cgisock <br />&lt;/ifmodule&gt; <br /> <br /># <br /># "/home/weblogic/apache//cgi-bin" should be changed to whatever your ScriptAliased <br /># CGI directory exists, if you have that configured. <br /># <br />&lt;directory "="" home="" weblogic="" apache="" cgi-bin"=""&gt; <br />AllowOverride None <br />Options None <br />Order allow,deny <br />Allow from all <br />&lt;/directory&gt; <br /> <br /># <br /># Redirect allows you to tell clients about documents which used to exist in <br /># your server's namespace, but do not anymore. This allows you to tell the <br /># clients where to look for the relocated document. <br /># Example: <br /># Redirect permanent /foo http://www.example.com/bar <br /> <br /># <br /># Directives controlling the display of server-generated directory listings. <br /># <br /> <br /># <br /># IndexOptions: Controls the appearance of server-generated directory <br /># listings. <br /># <br />IndexOptions FancyIndexing VersionSort <br /> <br /># <br /># AddIcon* directives tell the server which icon to show for different <br /># files or filename extensions.  These are only displayed for <br /># FancyIndexed directories. <br /># <br />AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip <br /> <br />AddIconByType (TXT,/icons/text.gif) text/* <br />AddIconByType (IMG,/icons/image2.gif) image/* <br />AddIconByType (SND,/icons/sound2.gif) audio/* <br />AddIconByType (VID,/icons/movie.gif) video/* <br /> <br />AddIcon /icons/binary.gif .bin .exe <br />AddIcon /icons/binhex.gif .hqx <br />AddIcon /icons/tar.gif .tar <br />AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv <br />AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip <br />AddIcon /icons/a.gif .ps .ai .eps <br />AddIcon /icons/layout.gif .html .shtml .htm .pdf <br />AddIcon /icons/text.gif .txt <br />AddIcon /icons/c.gif .c <br />AddIcon /icons/p.gif .pl .py <br />AddIcon /icons/f.gif .for <br />AddIcon /icons/dvi.gif .dvi <br />AddIcon /icons/uuencoded.gif .uu <br />AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl <br />AddIcon /icons/tex.gif .tex <br />AddIcon /icons/bomb.gif core <br /> <br />AddIcon /icons/back.gif .. <br />AddIcon /icons/hand.right.gif README <br />AddIcon /icons/folder.gif ^^DIRECTORY^^ <br />AddIcon /icons/blank.gif ^^BLANKICON^^ <br /> <br /># <br /># DefaultIcon is which icon to show for files which do not have an icon <br /># explicitly set. <br /># <br />DefaultIcon /icons/unknown.gif <br /> <br /># <br /># AddDescription allows you to place a short description after a file in <br /># server-generated indexes.  These are only displayed for FancyIndexed <br /># directories. <br /># Format: AddDescription "description" filename <br /># <br />#AddDescription "GZIP compressed document" .gz <br />#AddDescription "tar archive" .tar <br />#AddDescription "GZIP compressed tar archive" .tgz <br /> <br /># <br /># ReadmeName is the name of the README file the server will look for by <br /># default, and append to directory listings. <br /># <br /># HeaderName is the name of a file which should be prepended to <br /># directory indexes. <br />ReadmeName README.html <br />HeaderName HEADER.html <br /> <br /># <br /># IndexIgnore is a set of filenames which directory indexing should ignore <br /># and not include in the listing.  Shell-style wildcarding is permitted. <br /># <br />IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t <br /> <br /># <br /># DefaultLanguage and AddLanguage allows you to specify the language of <br /># a document. You can then use content negotiation to give a browser a <br /># file in a language the user can understand. <br /># <br /># Specify a default language. This means that all data <br /># going out without a specific language tag (see below) will <br /># be marked with this one. You probably do NOT want to set <br /># this unless you are sure it is correct for all cases. <br /># <br /># * It is generally better to not mark a page as <br /># * being a certain language than marking it with the wrong <br /># * language! <br /># <br /># DefaultLanguage nl <br /># <br /># Note 1: The suffix does not have to be the same as the language <br /># keyword --- those with documents in Polish (whose net-standard <br /># language code is pl) may wish to use "AddLanguage pl .po" to <br /># avoid the ambiguity with the common suffix for perl scripts. <br /># <br /># Note 2: The example entries below illustrate that in some cases <br /># the two character 'Language' abbreviation is not identical to <br /># the two character 'Country' code for its country, <br /># E.g. 'Danmark/dk' versus 'Danish/da'. <br /># <br /># Note 3: In the case of 'ltz' we violate the RFC by using a three char <br /># specifier. There is 'work in progress' to fix this and get <br /># the reference data for rfc1766 cleaned up. <br /># <br /># Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl) <br /># English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de) <br /># Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja) <br /># Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn) <br /># Norwegian (no) - Polish (pl) - Portugese (pt) <br /># Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv) <br /># Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW) <br /># <br />AddLanguage ca .ca <br />AddLanguage cs .cz .cs <br />AddLanguage da .dk <br />AddLanguage de .de <br />AddLanguage el .el <br />AddLanguage en .en <br />AddLanguage eo .eo <br />AddLanguage es .es <br />AddLanguage et .et <br />AddLanguage fr .fr <br />AddLanguage he .he <br />AddLanguage hr .hr <br />AddLanguage it .it <br />AddLanguage ja .ja <br />AddLanguage ko .ko <br />AddLanguage ltz .ltz <br />AddLanguage nl .nl <br />AddLanguage nn .nn <br />AddLanguage no .no <br />AddLanguage pl .po <br />AddLanguage pt .pt <br />AddLanguage pt-BR .pt-br <br />AddLanguage ru .ru <br />AddLanguage sv .sv <br />AddLanguage zh-CN .zh-cn <br />AddLanguage zh-TW .zh-tw <br /> <br /># <br /># LanguagePriority allows you to give precedence to some languages <br /># in case of a tie during content negotiation. <br /># <br /># Just list the languages in decreasing order of preference. We have <br /># more or less alphabetized them here. You probably want to change this. <br /># <br />LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW <br /> <br /># <br /># ForceLanguagePriority allows you to serve a result page rather than <br /># MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback) <br /># [in case no accepted languages matched the available variants] <br /># <br />ForceLanguagePriority Prefer Fallback <br /> <br /># <br /># Commonly used filename extensions to character sets. You probably <br /># want to avoid clashes with the language extensions, unless you <br /># are good at carefully testing your setup after each change. <br /># See http://www.iana.org/assignments/character-sets for the <br /># official list of charset names and their respective RFCs. <br /># <br />AddCharset ISO-8859-1  .iso8859-1  .latin1 <br />AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen <br />AddCharset ISO-8859-3  .iso8859-3  .latin3 <br />AddCharset ISO-8859-4  .iso8859-4  .latin4 <br />AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru <br />AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb <br />AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk <br />AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb <br />AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk <br />AddCharset ISO-2022-JP .iso2022-jp .jis <br />AddCharset ISO-2022-KR .iso2022-kr .kis <br />AddCharset ISO-2022-CN .iso2022-cn .cis <br />AddCharset Big5        .Big5       .big5 <br /># For russian, more than one charset is used (depends on client, mostly): <br />AddCharset WINDOWS-1251 .cp-1251   .win-1251 <br />AddCharset CP866       .cp866 <br />AddCharset KOI8-r      .koi8-r .koi8-ru <br />AddCharset KOI8-ru     .koi8-uk .ua <br />AddCharset ISO-10646-UCS-2 .ucs2 <br />AddCharset ISO-10646-UCS-4 .ucs4 <br />AddCharset UTF-8       .utf8 <br /> <br /># The set below does not map to a specific (iso) standard <br /># but works on a fairly wide range of browsers. Note that <br /># capitalization actually matters (it should not, but it <br /># does for some browsers). <br /># <br /># See http://www.iana.org/assignments/character-sets <br /># for a list of sorts. But browsers support few. <br /># <br />AddCharset GB2312      .gb2312 .gb <br />AddCharset utf-7       .utf7 <br />AddCharset utf-8       .utf8 <br />AddCharset big5        .big5 .b5 <br />AddCharset EUC-TW      .euc-tw <br />AddCharset EUC-JP      .euc-jp <br />AddCharset EUC-KR      .euc-kr <br />AddCharset shift_jis   .sjis <br /> <br /># <br /># AddType allows you to add to or override the MIME configuration <br /># file mime.types for specific file types. <br /># <br />#AddType application/x-tar .tgz <br /># <br /># AddEncoding allows you to have certain browsers uncompress <br /># information on the fly. Note: Not all browsers support this. <br /># Despite the name similarity, the following Add* directives have nothing <br /># to do with the FancyIndexing customization directives above. <br /># <br />#AddEncoding x-compress .Z <br />#AddEncoding x-gzip .gz .tgz <br /># <br /># If the AddEncoding directives above are commented-out, then you <br /># probably should define those extensions to indicate media types: <br /># <br />AddType application/x-compress .Z <br />AddType application/x-gzip .gz .tgz <br /> <br /># <br /># AddHandler allows you to map certain file extensions to "handlers": <br /># actions unrelated to filetype. These can be either built into the server <br /># or added with the Action directive (see below) <br /># <br /># To use CGI scripts outside of ScriptAliased directories: <br /># (You will also need to add "ExecCGI" to the "Options" directive.) <br /># <br />#AddHandler cgi-script .cgi <br /> <br /># <br /># For files that include their own HTTP headers: <br /># <br />#AddHandler send-as-is asis <br /> <br /># <br /># For server-parsed imagemap files: <br /># <br />#AddHandler imap-file map <br /> <br /># <br /># For type maps (negotiated resources): <br /># (This is enabled by default to allow the Apache "It Worked" page <br />#  to be distributed in multiple languages.) <br /># <br />AddHandler type-map var <br /> <br /># <br /># Filters allow you to process content before it is sent to the client. <br /># <br /># To parse .shtml files for server-side includes (SSI): <br /># (You will also need to add "Includes" to the "Options" directive.) <br /># <br />#AddType text/html .shtml <br />#AddOutputFilter INCLUDES .shtml <br /> <br /># <br /># Action lets you define media types that will execute a script whenever <br /># a matching file is called. This eliminates the need for repeated URL <br /># pathnames for oft-used CGI file processors. <br /># Format: Action media/type /cgi-script/location <br /># Format: Action handler-name /cgi-script/location <br /># <br /> <br /># <br /># Customizable error responses come in three flavors: <br /># 1) plain text 2) local redirects 3) external redirects <br /># <br /># Some examples: <br />#ErrorDocument 500 "The server made a boo boo." <br />#ErrorDocument 404 /missing.html <br />#ErrorDocument 404 "/cgi-bin/missing_handler.pl" <br />#ErrorDocument 402 http://www.example.com/subscription_info.html <br /># <br /> <br /># <br /># Putting this all together, we can internationalize error responses. <br /># <br /># We use Alias to redirect any /error/HTTP_&lt;error&gt;.html.var response to <br /># our collection of by-error message multi-language collections.  We use <br /># includes to substitute the appropriate text. <br /># <br /># You can modify the messages' appearance without changing any of the <br /># default HTTP_&lt;error&gt;.html.var files by adding the line: <br /># <br />#   Alias /error/include/ "/your/include/path/" <br /># <br /># which allows you to create your own set of files by starting with the <br /># /home/weblogic/apache//error/include/ files and copying them to /your/include/path/, <br /># even on a per-VirtualHost basis.  The default include files will display <br /># your Apache version number and your ServerAdmin email address regardless <br /># of the setting of ServerSignature. <br /># <br /># The internationalized error documents require mod_alias, mod_include <br /># and mod_negotiation.  To activate them, uncomment the following 30 lines. <br /> <br />#    Alias /error/ "/home/weblogic/apache//error/" <br /># <br />#    &lt;directory "="" home="" weblogic="" apache="" error"=""&gt; <br />#        AllowOverride None <br />#        Options IncludesNoExec <br />#        AddOutputFilter Includes html <br />#        AddHandler type-map var <br />#        Order allow,deny <br />#        Allow from all <br />#        LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr <br />#        ForceLanguagePriority Prefer Fallback <br />#    &lt;/directory&gt; <br /># <br />#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var <br />#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var <br />#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var <br />#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var <br />#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var <br />#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var <br />#    ErrorDocument 410 /error/HTTP_GONE.html.var <br />#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var <br />#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var <br />#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var <br />#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var <br />#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var <br />#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var <br />#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var <br />#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var <br />#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var <br />#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var <br /> <br /> <br /># <br /># The following directives modify normal HTTP response behavior to <br /># handle known problems with browser implementations. <br /># <br />BrowserMatch "Mozilla/2" nokeepalive <br />BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 <br />BrowserMatch "RealPlayer 4\.0" force-response-1.0 <br />BrowserMatch "Java/1\.0" force-response-1.0 <br />BrowserMatch "JDK/1\.0" force-response-1.0 <br /> <br /># <br /># The following directive disables redirects on non-GET requests for <br /># a directory that does not include the trailing slash.  This fixes a <br /># problem with Microsoft WebFolders which does not appropriately handle <br /># redirects for folders with DAV methods. <br /># Same deal with Apple's DAV filesystem and Gnome VFS support for DAV. <br /># <br />BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully <br />BrowserMatch "MS FrontPage" redirect-carefully <br />BrowserMatch "^WebDrive" redirect-carefully <br />BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully <br />BrowserMatch "^gnome-vfs" redirect-carefully <br />BrowserMatch "^XML Spy" redirect-carefully <br />BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully <br /> <br /># <br /># Allow server status reports generated by mod_status, <br /># with the URL of http://servername/server-status <br /># Change the ".example.com" to match your domain to enable. <br /># <br />#&lt;location server-status=""&gt; <br />#    SetHandler server-status <br />#    Order deny,allow <br />#    Deny from all <br />#    Allow from .example.com <br />#&lt;/location&gt; <br /> <br /># <br /># Allow remote server configuration reports, with the URL of <br />#  http://servername/server-info (requires that mod_info.c be loaded). <br /># Change the ".example.com" to match your domain to enable. <br /># <br />#&lt;location server-info=""&gt; <br />#    SetHandler server-info <br />#    Order deny,allow <br />#    Deny from all <br />#    Allow from .example.com <br />#&lt;/location&gt; <br /> <br /> <br /># <br /># Bring in additional module-specific configurations <br /># <br />&lt;ifmodule mod_ssl.c=""&gt; <br />Include conf/ssl.conf <br />&lt;/ifmodule&gt; <br /> <br /> <br />### Section 3: Virtual Hosts <br /># <br /># VirtualHost: If you want to maintain multiple domains/hostnames on your <br /># machine you can setup VirtualHost containers for them. Most configurations <br /># use only name-based virtual hosts so the server doesn't need to worry about <br /># IP addresses. This is indicated by the asterisks in the directives below. <br /># <br /># Please see the documentation at <br /># &lt;url:http: httpd.apache.org="" docs="" 2.0="" vhosts=""/&gt; <br /># for further details before you try to setup virtual hosts. <br /># <br /># You may use the command line option '-S' to verify your virtual host <br /># configuration. <br /> <br /># <br /># Use name-based virtual hosting. <br /># <br />#NameVirtualHost *:80 <br /> <br /># <br /># VirtualHost example: <br /># Almost any Apache directive may go into a VirtualHost container. <br /># The first VirtualHost section is used for requests without a known <br /># server name. <br /># <br />#&lt;virtualhost *:80=""&gt; <br />#    ServerAdmin webmaster@dummy-host.example.com <br />#    DocumentRoot /www/docs/dummy-host.example.com <br />#    ServerName dummy-host.example.com <br />#    ErrorLog logs/dummy-host.example.com-error_log <br />#    CustomLog logs/dummy-host.example.com-access_log common <br />#&lt;/virtualhost&gt; <br /> <br />#&lt;location insiis=""&gt; <br />#  SetHandler weblogic-handler <br />#&lt;/location&gt;  <br /> <br />&lt;ifmodule mod_weblogic.c=""&gt; <br />  WebLogicCluster 192.168.108.12:8091,192.168.108.13:8092 <br />  MatchExpression * <br />&lt;/ifmodule&gt; <br />------------------------------ <br />apachectl 内容如下 <br />------------------------------ <br />#!/bin/sh <br /># <br /># Licensed to the Apache Software Foundation (ASF) under one or more <br /># contributor license agreements.  See the NOTICE file distributed with <br /># this work for additional information regarding copyright ownership. <br /># The ASF licenses this file to You under the Apache License, Version 2.0 <br /># (the "License"); you may not use this file except in compliance with <br /># the License.  You may obtain a copy of the License at <br /># <br />#     http://www.apache.org/licenses/LICENSE-2.0 <br /># <br /># Unless required by applicable law or agreed to in writing, software <br /># distributed under the License is distributed on an "AS IS" BASIS, <br /># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br /># See the License for the specific language governing permissions and <br /># limitations under the License. <br /># <br /># <br /># Apache control script designed to allow an easy command line interface <br /># to controlling Apache.  Written by Marc Slemko, 1997/08/23 <br /># <br /># The exit codes returned are: <br />#   XXX this doc is no longer correct now that the interesting <br />#   XXX functions are handled by httpd <br /># 0 - operation completed successfully <br /># 1 - <br /># 2 - usage error <br /># 3 - httpd could not be started <br /># 4 - httpd could not be stopped <br /># 5 - httpd could not be started during a restart <br /># 6 - httpd could not be restarted during a restart <br /># 7 - httpd could not be restarted during a graceful restart <br /># 8 - configuration syntax error <br /># <br /># When multiple arguments are given, only the error from the _last_ <br /># one is reported.  Run "apachectl help" for usage info <br /># <br />ARGV="$@" <br /># <br /># |||||||||||||||||||| START CONFIGURATION SECTION  |||||||||||||||||||| <br /># --------------------                              -------------------- <br /># <br /># the path to your httpd binary, including options if necessary <br />HTTPD='/home/weblogic/apache//bin/httpd' <br /># <br /># pick up any necessary environment variables <br />if test -f /home/weblogic/apache//bin/envvars; then <br />  . /home/weblogic/apache//bin/envvars <br />fi <br /># <br /># a command that outputs a formatted text version of the HTML at the <br /># url given on the command line.  Designed for lynx, however other <br /># programs may work.  <br />LYNX="lynx -dump" <br /># <br /># the URL to your server's mod_status status page.  If you do not <br /># have one, then status and fullstatus will not work. <br />STATUSURL="http://localhost:80/server-status" <br /># <br /># Set this variable to a command that increases the maximum <br /># number of file descriptors allowed per child process. This is <br /># critical for configurations that use many file descriptors, <br /># such as mass vhosting, or a multithreaded server. <br />ULIMIT_MAX_FILES="ulimit -S -n unlimited" <br /># --------------------                              -------------------- <br /># ||||||||||||||||||||   END CONFIGURATION SECTION  |||||||||||||||||||| <br /> <br /># Set the maximum number of file descriptors allowed per child process. <br />if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then <br />    $ULIMIT_MAX_FILES <br />fi <br /> <br />ERROR=0 <br />if [ "x$ARGV" = "x" ] ; then <br />    ARGV="-h" <br />fi <br /> <br />case $ARGV in <br />start|stop|restart|graceful) <br />    $HTTPD -k $ARGV <br />    ERROR=$? <br />    ;; <br />startssl|sslstart|start-SSL) <br />    $HTTPD -k start -DSSL <br />    ERROR=$? <br />    ;; <br />configtest) <br />    $HTTPD -t <br />    ERROR=$? <br />    ;; <br />status) <br />    $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' <br />    ;; <br />fullstatus) <br />    $LYNX $STATUSURL <br />    ;; <br />*) <br />    $HTTPD $ARGV <br />    ERROR=$? <br />esac <br /> <br />exit $ERROR <br />------------------------------------------ <br />logs的纪录是 <br />Invalid argument: setgid: unable to set group id to Group 4294967295 (号码虚拟) <br /> <br />哪位xdjm帮忙解答一下 <br />谢谢! <br /> <br />&lt;/path&gt;
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
阿里面试官问我:如何设计秒杀系统?我的回答让他比起大拇指
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图和个人联系方式,欢迎Star和指教 前言 Redis在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在Redis的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n...
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
Android性能优化(4):UI渲染机制以及优化
文章目录1. 渲染机制分析1.1 渲染机制1.2 卡顿现象1.3 内存抖动2. 渲染优化方式2.1 过度绘制优化2.1.1 Show GPU overdraw2.1.2 Profile GPU Rendering2.2 卡顿优化2.2.1 SysTrace2.2.2 TraceView 在从Android 6.0源码的角度剖析View的绘制原理一文中,我们了解到View的绘制流程有三个步骤,即m...
微服务中的Kafka与Micronaut
今天,我们将通过Apache Kafka主题构建一些彼此异步通信的微服务。我们使用Micronaut框架,它为与Kafka集成提供专门的库。让我们简要介绍一下示例系统的体系结构。我们有四个微型服务:订单服务,行程服务,司机服务和乘客服务。这些应用程序的实现非常简单。它们都有内存存储,并连接到同一个Kafka实例。 我们系统的主要目标是为客户安排行程。订单服务应用程序还充当网关。它接收来自客户的请求...
致 Python 初学者们!
作者| 许向武 责编 | 屠敏 出品 | CSDN 博客 前言 在 Python 进阶的过程中,相信很多同学应该大致上学习了很多 Python 的基础知识,也正在努力成长。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 Python 这门编程语言,从2009年开始单一使用 Python 应对所有的开发工作,直至今...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
字节跳动面试官这样问消息队列:分布式事务、重复消费、顺序消费,我整理了一下
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip installselenium -ihttps://pypi.tuna.tsinghua.edu.cn/simple/ ...
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca...
SpringBoot2.x系列教程(三十六)SpringBoot之Tomcat配置
Spring Boot默认内嵌的Tomcat为Servlet容器,关于Tomcat的所有属性都在ServerProperties配置类中。同时,也可以实现一些接口来自定义内嵌Servlet容器和内嵌Tomcat等的配置。 关于此配置,网络上有大量的资料,但都是基于SpringBoot1.5.x版本,并不适合当前最新版本。本文将带大家了解一下最新版本的使用。 ServerProperties的部分源...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
破14亿,Python分析我国存在哪些人口危机!
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o...
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ...... ...
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
2020年全新Java学习路线图,含配套视频,学完即为中级Java程序员!!
新的一年来临,突如其来的疫情打破了平静的生活! 在家的你是否很无聊,如果无聊就来学习吧! 世上只有一种投资只赚不赔,那就是学习!!! 传智播客于2020年升级了Java学习线路图,硬核升级,免费放送! 学完你就是中级程序员,能更快一步找到工作! 一、Java基础 JavaSE基础是Java中级程序员的起点,是帮助你从小白到懂得编程的必经之路。 在Java基础板块中有6个子模块的学...
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合...
爬取薅羊毛网站百度云资源
这是疫情期间无聊做的爬虫, 去获取暂时用不上的教程 import threading import time import pandas as pd import requests import re from threading import Thread, Lock # import urllib.request as request # req=urllib.request.Requ...
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名...
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计...
HTML5适合的情人节礼物有纪念日期功能
前言 利用HTML5,css,js实现爱心树 以及 纪念日期的功能 网页有播放音乐功能 以及打字倾诉感情的画面,非常适合情人节送给女朋友 具体的HTML代码 具体只要修改代码里面的男某某和女某某 文字段也可自行修改,还有代码下半部分的JS代码需要修改一下起始日期 注意月份为0~11月 也就是月份需要减一。 当然只有一部分HTML和JS代码不够运行的,文章最下面还附加了完整代码的下载地址 &lt;!...
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允许使用这...
python沙箱逃逸
沙箱逃逸是CTF和实际场景中经常遇到的一种情况。需要利用python的特性来实现逃逸。本文详细介绍了关于python逃逸的基础以及一些构造payload方法,并且附加习题提供练习。
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧???? 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升自...
新来个技术总监,禁止我们使用Lombok!
我有个学弟,在一家小型互联网公司做Java后端开发,最近他们公司新来了一个技术总监,这位技术总监对技术细节很看重,一来公司之后就推出了很多"政策",比如定义了很多开发规范、日志规范、甚至是要求大家统一使用某一款IDE。 但是这些都不是我这个学弟和我吐槽的点,他真正和我吐槽的是,他很不能理解,这位新来的技术总监竟然禁止公司内部所有开发使用Lombok。但是又没给出十分明确的,可以让人信服的理由。 于...
教你如何编写第一个简单的爬虫
很多人知道爬虫,也很想利用爬虫去爬取自己想要的数据,那么爬虫到底怎么用呢?今天就教大家编写一个简单的爬虫。 下面以爬取笔者的个人博客网站为例获取第一篇文章的标题名称,教大家学会一个简单的爬虫。 第一步:获取页面 #!/usr/bin/python # coding: utf-8 import requests #引入包requests link = "http://www.santostang....
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
情人节到了,适合程序员表白的情话【保你脱单】
谁说我们程序员不浪漫,这些情话只有程序员能看懂
相关热词 c# 识别回车 c#生成条形码ean13 c#子控制器调用父控制器 c# 写大文件 c# 浏览pdf c#获取桌面图标的句柄 c# list反射 c# 句柄 进程 c# 倒计时 线程 c# 窗体背景色
立即提问