@
mokeyjay,谢谢您相告有面板控制这个操作。。。。
@
Tink,不像是端口有重复。。。
@
twl007,没有效果,调完后,重启服务跟原来效果一样。
@
v2register,没效果。。。
经过两天折腾,还是搞不出什么变化。。。
我把我完整的配置贴出来,麻烦请高手们再帮我看看吧。。。。
```
[root@TeLinux /root]$ cat /etc/httpd/conf/httpd.conf
#80,Default_PHP,froum
#7070,netDisk
#8080,test1
#9090,test2
ServerName localhost:80
ServerName localhost:7070
ServerName localhost:8080
ServerName localhost:9090
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
Listen 80
Listen 7070
Listen 8080
Listen 9090
#Include conf.d/*.conf
#User apache
#Group apache
User vftpuser
Group vftpuser
#BBS
<VirtualHost *:80>
DocumentRoot /opt/bbs
DocumentRoot "/opt/bbs"
<Directory "/opt/bbs">
Options Indexes FollowSymLinks
DirectoryIndex index.php index.htm index.html
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
#7070,NetDisk
<VirtualHost *:7070>
DocumentRoot /opt/netdisk
DocumentRoot "/opt/netdisk"
<Directory "/opt/netdisk">
Options Indexes FollowSymLinks
#DirectoryIndex index.php index.htm index.html
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
#8080,Test
<VirtualHost *:8080>
SSLEngine on
SSLOptions StdEnvVars
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW:!RC4:
SSLCertificateFile "/etc/httpd/conf/ssl_key/server.crt"
SSLCertificateKeyFile "/etc/httpd/conf/ssl_key/server.key"
DocumentRoot /opt/test1
DocumentRoot "/opt/test1"
<Directory "/opt/test1">
Options Indexes FollowSymLinks
#Options FollowSymLinks
#Options Indexes
#AllowOverride None
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
#9090,Test2
<VirtualHost *:9090>
DocumentRoot /opt/test2
DocumentRoot "/opt/test2"
<Directory "/opt/test2">
Options Indexes FollowSymLinks
#Options FollowSymLinks
#Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
LoadModule auth_basic_module modules/
mod_auth_basic.soLoadModule auth_digest_module modules/
mod_auth_digest.soLoadModule authn_file_module modules/
mod_authn_file.soLoadModule authn_alias_module modules/
mod_authn_alias.soLoadModule authn_anon_module modules/
mod_authn_anon.soLoadModule authn_dbm_module modules/
mod_authn_dbm.soLoadModule authn_default_module modules/
mod_authn_default.soLoadModule authz_host_module modules/
mod_authz_host.soLoadModule authz_user_module modules/
mod_authz_user.soLoadModule authz_owner_module modules/
mod_authz_owner.soLoadModule authz_groupfile_module modules/
mod_authz_groupfile.soLoadModule authz_dbm_module modules/
mod_authz_dbm.soLoadModule authz_default_module modules/
mod_authz_default.soLoadModule ldap_module modules/
mod_ldap.soLoadModule authnz_ldap_module modules/
mod_authnz_ldap.soLoadModule include_module modules/
mod_include.soLoadModule log_config_module modules/
mod_log_config.soLoadModule logio_module modules/
mod_logio.soLoadModule env_module modules/
mod_env.soLoadModule ext_filter_module modules/
mod_ext_filter.soLoadModule mime_magic_module modules/
mod_mime_magic.soLoadModule expires_module modules/
mod_expires.soLoadModule deflate_module modules/
mod_deflate.soLoadModule headers_module modules/
mod_headers.soLoadModule usertrack_module modules/
mod_usertrack.soLoadModule setenvif_module modules/
mod_setenvif.soLoadModule mime_module modules/
mod_mime.soLoadModule dav_module modules/
mod_dav.soLoadModule status_module modules/
mod_status.soLoadModule autoindex_module modules/
mod_autoindex.soLoadModule info_module modules/
mod_info.so#LoadModule dav_fs_module modules/
mod_dav_fs.soLoadModule vhost_alias_module modules/
mod_vhost_alias.soLoadModule negotiation_module modules/
mod_negotiation.soLoadModule dir_module modules/
mod_dir.soLoadModule actions_module modules/
mod_actions.soLoadModule speling_module modules/
mod_speling.soLoadModule userdir_module modules/
mod_userdir.soLoadModule alias_module modules/
mod_alias.soLoadModule substitute_module modules/
mod_substitute.soLoadModule rewrite_module modules/
mod_rewrite.soLoadModule proxy_module modules/
mod_proxy.soLoadModule proxy_balancer_module modules/
mod_proxy_balancer.soLoadModule proxy_ftp_module modules/
mod_proxy_ftp.soLoadModule proxy_http_module modules/
mod_proxy_http.soLoadModule proxy_ajp_module modules/
mod_proxy_ajp.soLoadModule proxy_connect_module modules/
mod_proxy_connect.soLoadModule cache_module modules/
mod_cache.soLoadModule suexec_module modules/
mod_suexec.soLoadModule disk_cache_module modules/
mod_disk_cache.soLoadModule cgi_module modules/
mod_cgi.soLoadModule php5_module modules/
libphp5.soLoadModule ssl_module modules/
mod_ssl.soAddType application/x-httpd-php .php
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
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 /icons/unknown.gif
AddDefaultCharset UTF-8
#AddDefaultCharset GB2312
#AddDefaultCharset off
#AddDefaultCharset on
#AddDefaultCharset GBK
IndexOptions Charset=GB2312
DefaultIcon /icons/unknown.gif
ForceLanguagePriority Prefer Fallback
[root@TeLinux /root]$
```