apache - Apache2 / ZendServer / PHP - Controller URL request gives 404 not found -
i have next application construction resides inside:
c:\program files (x86)\zend\apache2\htdocs
in apache 2.2.22 httpd.conf file
documentroot "c:\program files (x86)\zend\apache2/htdocs/public" <directory "c:\program files (x86)\zend\apache2/htdocs/"> options indexes followsymlinks allowoverride none order allow,deny allow </directory> <ifmodule dir_module> directoryindex index.php </ifmodule>
when navigate 127.0.0.1, index.php file loaded
however, when navigate 127.0.0.1/request (request beingness controller name) comes 404 not found.
we have same construction running on our servers, , resource able located.
any suggestion of or change?
entire apache2\conf\httpd.conf
# # main apache http server configuration file. contains # configuration directives give server instructions. # see <url:http://httpd.apache.org/docs/2.2> detailed information. # in particular, see # <url:http://httpd.apache.org/docs/2.2/mod/directives.html> # give-and-take of each configuration directive. # # not read instructions in here without understanding # do. they're here hints or reminders. if unsure # consult online docs. have been warned. # # configuration , logfile names: if filenames specify many # of server's command files begin "/" (or "drive:/" win32), # server utilize explicit path. if filenames *not* begin # "/", value of serverroot prepended -- "logs/foo.log" # serverroot set "c:\program files (x86)\zend\apache2" interpreted # server "c:\program files (x86)\zend\apache2/logs/foo.log". # # note: filenames specified, must utilize forwards slashes # instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). # if drive letter omitted, drive on httpd.exe located # used default. recommended supply # explicit drive letter in absolute paths avoid confusion. # # serverroot: top of directory tree under server's # configuration, error, , log files kept. # # not add together slash @ end of directory path. if point # serverroot @ non-local disk, sure point lockfile directive # @ local disk. if wish share same serverroot multiple # httpd daemons, need alter @ to the lowest degree lockfile , pidfile. # serverroot "c:\program files (x86)\zend\apache2" # # listen: allows bind apache specific ip addresses and/or # ports, instead of default. see <virtualhost> # directive. # # alter hear on specific ip addresses shown below # prevent apache glomming onto bound ip addresses. # #listen 12.34.56.78: 80 hear 80 # # dynamic shared object (dso) back upwards # # able utilize functionality of module built dso # have place corresponding `loadmodule' lines @ location # directives contained in available _before_ used. # statically compiled modules (those listed `httpd -l') not need # loaded here. # # example: # loadmodule foo_module modules/mod_foo.so # loadmodule actions_module modules/mod_actions.so loadmodule alias_module modules/mod_alias.so loadmodule asis_module modules/mod_asis.so loadmodule auth_basic_module modules/mod_auth_basic.so loadmodule auth_digest_module modules/mod_auth_digest.so #loadmodule authn_alias_module modules/mod_authn_alias.so #loadmodule authn_anon_module modules/mod_authn_anon.so #loadmodule authn_dbd_module modules/mod_authn_dbd.so #loadmodule authn_dbm_module modules/mod_authn_dbm.so loadmodule authn_default_module modules/mod_authn_default.so loadmodule authn_file_module modules/mod_authn_file.so #loadmodule authnz_ldap_module modules/mod_authnz_ldap.so #loadmodule authz_dbm_module modules/mod_authz_dbm.so loadmodule authz_default_module modules/mod_authz_default.so loadmodule authz_groupfile_module modules/mod_authz_groupfile.so loadmodule authz_host_module modules/mod_authz_host.so #loadmodule authz_owner_module modules/mod_authz_owner.so loadmodule authz_user_module modules/mod_authz_user.so loadmodule autoindex_module modules/mod_autoindex.so #loadmodule cache_module modules/mod_cache.so #loadmodule cern_meta_module modules/mod_cern_meta.so loadmodule cgi_module modules/mod_cgi.so #loadmodule charset_lite_module modules/mod_charset_lite.so #loadmodule dav_module modules/mod_dav.so #loadmodule dav_fs_module modules/mod_dav_fs.so #loadmodule dav_lock_module modules/mod_dav_lock.so #loadmodule dbd_module modules/mod_dbd.so #loadmodule deflate_module modules/mod_deflate.so loadmodule dir_module modules/mod_dir.so #loadmodule disk_cache_module modules/mod_disk_cache.so #loadmodule dumpio_module modules/mod_dumpio.so loadmodule env_module modules/mod_env.so #loadmodule expires_module modules/mod_expires.so #loadmodule ext_filter_module modules/mod_ext_filter.so #loadmodule file_cache_module modules/mod_file_cache.so loadmodule filter_module modules/mod_filter.so loadmodule headers_module modules/mod_headers.so #loadmodule ident_module modules/mod_ident.so loadmodule imagemap_module modules/mod_imagemap.so loadmodule include_module modules/mod_include.so loadmodule info_module modules/mod_info.so loadmodule isapi_module modules/mod_isapi.so #loadmodule ldap_module modules/mod_ldap.so #loadmodule logio_module modules/mod_logio.so loadmodule log_config_module modules/mod_log_config.so #loadmodule log_forensic_module modules/mod_log_forensic.so #loadmodule mem_cache_module modules/mod_mem_cache.so loadmodule mime_module modules/mod_mime.so loadmodule mime_magic_module modules/mod_mime_magic.so loadmodule negotiation_module modules/mod_negotiation.so #loadmodule proxy_module modules/mod_proxy.so #loadmodule proxy_ajp_module modules/mod_proxy_ajp.so #loadmodule proxy_balancer_module modules/mod_proxy_balancer.so #loadmodule proxy_connect_module modules/mod_proxy_connect.so #loadmodule proxy_ftp_module modules/mod_proxy_ftp.so #loadmodule proxy_http_module modules/mod_proxy_http.so #loadmodule proxy_scgi_module modules/mod_proxy_scgi.so #loadmodule reqtimeout_module modules/mod_reqtimeout.so loadmodule rewrite_module modules/mod_rewrite.so loadmodule setenvif_module modules/mod_setenvif.so #loadmodule speling_module modules/mod_speling.so loadmodule ssl_module modules/mod_ssl.so loadmodule status_module modules/mod_status.so #loadmodule substitute_module modules/mod_substitute.so #loadmodule unique_id_module modules/mod_unique_id.so loadmodule userdir_module modules/mod_userdir.so #loadmodule usertrack_module modules/mod_usertrack.so #loadmodule version_module modules/mod_version.so #loadmodule vhost_alias_module modules/mod_vhost_alias.so <ifmodule !mpm_netware_module> <ifmodule !mpm_winnt_module> # # if wish httpd run different user or group, must run # httpd root , switch. # # user/group: name (or #number) of user/group run httpd as. # practice create dedicated user , grouping # running httpd, scheme services. # user daemon grouping daemon </ifmodule> </ifmodule> # 'main' server configuration # # directives in section set values used 'main' # server, responds requests aren't handled # <virtualhost> definition. these values provide defaults # <virtualhost> containers may define later in file. # # of these directives may appear within <virtualhost> containers, # in case these default settings overridden # virtual host beingness defined. # # # serveradmin: address, problems server should # e-mailed. address appears on server-generated pages, such # error documents. e.g. admin@your-domain.com # serveradmin admin@example.com # # servername gives name , port server uses identify itself. # can determined automatically, recommend specify # explicitly prevent problems during startup. # # if host doesn't have registered dns name, come in ip address here. # #servername www.example.com: 80 # # documentroot: directory out of serve # documents. default, requests taken directory, # symbolic links , aliases may used point other locations. # documentroot "c:\program files (x86)\zend\apache2/htdocs/public" # # each directory apache has access can configured respect # services , features allowed and/or disabled in # directory (and subdirectories). # # first, configure "default" restrictive set of # features. # <directory /> options followsymlinks allowoverride none order allow,deny allow </directory> # # note point forwards must allow # particular features enabled - if something's not working # might expect, create sure have enabled # below. # # # should changed whatever set documentroot to. # <directory "c:\program files (x86)\zend\apache2/htdocs/"> # # possible values options directive "none", "all", # or combination of: # indexes includes followsymlinks symlinksifownermatch execcgi multiviews # # note "multiviews" must named *explicitly* --- "options all" # doesn't give you. # # options directive both complicated , important. please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # more information. # options indexes followsymlinks # # allowoverride controls directives may placed in .htaccess files. # can "all", "none", or combination of keywords: # options fileinfo authconfig limit # allowoverride none # # controls can stuff server. # order allow,deny allow </directory> # # directoryindex: sets file apache serve if directory # requested. # <ifmodule dir_module> directoryindex index.php </ifmodule> # # next lines prevent .htaccess , .htpasswd files beingness # viewed web clients. # <filesmatch "^\.ht"> order allow,deny deny satisfy </filesmatch> # # errorlog: location of error log file. # if not specify errorlog directive within <virtualhost> # container, error messages relating virtual host # logged here. if *do* define error logfile <virtualhost> # container, host's errors logged there , not here. # errorlog "logs/error.log" # # loglevel: command number of messages logged error_log. # possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # loglevel warn <ifmodule log_config_module> # # next directives define format nicknames utilize # 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" mutual <ifmodule logio_module> # need enable mod_logio.c utilize %i , %o logformat "%h %l %u %t \"%r\" %>s %b \"%{referer}i\" \"%{user-agent}i\" %i %o" combinedio </ifmodule> # # location , format of access logfile (common logfile format). # if not define access logfiles within <virtualhost> # container, logged here. contrariwise, if *do* # define per-<virtualhost> access logfiles, transactions # logged therein , *not* in file. # customlog "logs/access.log" mutual # # if prefer logfile access, agent, , referer info # (combined logfile format) can utilize next directive. # #customlog "logs/access.log" combined </ifmodule> <ifmodule alias_module> # # redirect: allows tell clients documents used # exist in server's namespace, not anymore. client # create new request document @ new location. # example: # redirect permanent /foo http://www.example.com/bar # # alias: maps web paths filesystem paths , used # access content not live under documentroot. # example: # alias /webpath /full/filesystem/path # # if include trailing / on /webpath server # require nowadays in url. # need provide <directory> section allow access # filesystem path. # # scriptalias: controls directories contain server scripts. # scriptaliases same aliases, except # documents in target directory treated applications , # run server when requested rather documents sent # client. same rules trailing "/" apply scriptalias # directives alias. # scriptalias /cgi-bin/ "c:\program files (x86)\zend\apache2/cgi-bin/" </ifmodule> <ifmodule cgid_module> # # scriptsock: on threaded servers, designate path unix # socket used communicate cgi daemon of mod_cgid. # #scriptsock logs/cgisock </ifmodule> # # "c:\program files (x86)\zend\apache2/cgi-bin" should changed whatever scriptaliased # cgi directory exists, if have configured. # <directory "c:\program files (x86)\zend\apache2/cgi-bin"> allowoverride none options none order allow,deny allow </directory> # # defaulttype: default mime type server utilize document # if cannot otherwise determine one, such filename extensions. # if server contains text or html documents, "text/plain" # value. if of content binary, such applications # or images, may want utilize "application/octet-stream" instead # maintain browsers trying display binary files though # text. # defaulttype text/plain <ifmodule mime_module> # # typesconfig points file containing list of mappings # filename extension mime-type. # typesconfig conf/mime.types # # addtype allows add together or override mime configuration # file specified in typesconfig specific file types. # #addtype application/x-gzip .tgz # # addencoding allows have browsers uncompress # info on fly. note: not browsers back upwards this. # #addencoding x-compress .z #addencoding x-gzip .gz .tgz # # if addencoding directives above commented-out, # should define extensions indicate media types: # addtype application/x-compress .z addtype application/x-gzip .gz .tgz # # addhandler allows map file extensions "handlers": # actions unrelated filetype. these can either built server # or added action directive (see below) # # utilize cgi scripts outside of scriptaliased directories: # (you need add together "execcgi" "options" directive.) # #addhandler cgi-script .cgi # type maps (negotiated resources): #addhandler type-map var # # filters allow process content before sent client. # # parse .shtml files server-side includes (ssi): # (you need add together "includes" "options" directive.) # #addtype text/html .shtml #addoutputfilter includes .shtml </ifmodule> # # mod_mime_magic module allows server utilize various hints # contents of file determine type. mimemagicfile # directive tells module hint definitions located. # #mimemagicfile conf/magic # # customizable error responses come in 3 flavors: # 1) plain text 2) local redirects 3) external redirects # # examples: #errordocument 500 "the server made 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 request before # returning entire resource, or 1 of special # values 'default', 'none' or 'unlimited'. # default setting take 200 ranges. #maxranges unlimited # # enablemmap , enablesendfile: on systems back upwards it, # memory-mapping or sendfile syscall used deliver # files. improves server performance, must # turned off when serving networked-mounted # filesystems or if back upwards these functions otherwise # broken on system. # #enablemmap off #enablesendfile off # supplemental configuration # # configuration files in conf/extra/ directory can # included add together features or modify default configuration of # server, or may re-create contents here , alter # 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 , configuration #include conf/extra/httpd-info.conf # virtual hosts #include conf/extra/httpd-vhosts.conf # local access apache http server manual #include conf/extra/httpd-manual.conf # distributed authoring , 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: next must must nowadays back upwards # starting without ssl on platforms no /dev/random equivalent # statically compiled-in mod_ssl. # <ifmodule ssl_module> sslrandomseed startup builtin sslrandomseed connect builtin </ifmodule> include "conf/zend.conf" #zend-{9bd5ee6fe55aaeb673025dbcb8f939c1} namevirtualhost *:80 <virtualhost *:80> #zend-{31ca0ca71184bbdb3de7b20a51e88e90} include "c:\program files (x86)\zend\zendserver/etc/sites.d/zend-default-vhost-80.conf" #zend-{31ca0ca71184bbdb3de7b20a51e88e90} </virtualhost> #zend-{9bd5ee6fe55aaeb673025dbcb8f939c1} #zend-{2e92962c0b6996add9517e4242ea9bdc} include "c:\program files (x86)\zend\zendserver/etc/sites.d/globals-*.conf" include "c:\program files (x86)\zend\zendserver/etc/sites.d/vhost_*.conf" #zend-{2e92962c0b6996add9517e4242ea9bdc}
entire apache2\conf\zend.conf
<location /server-info> sethandler server-info order deny,allow deny allow 127.0.0.1 </location> <location /server-status> sethandler server-status order deny,allow deny allow 127.0.0.1 </location> loadmodule zend_enabler_module "c:\program files (x86)\zend\zendserver\bin\zendenablerapache.dll" zendenablerconfig "c:\program files (x86)\zend\zendserver\etc\zendenablerconf.xml" addhandler zend-enabler-script .php addtype application/x-httpd-php .php <location /phpmyadmin> order deny,allow allow </location> alias /phpmyadmin "__httpd_phpmyadmin_path__" hear 10081 allowencodedslashes on win32disableacceptex namevirtualhost *:10081 <virtualhost *:10081> alias /zendserver "c:\program files (x86)\zend\zendserver\gui\public" documentroot "c:\program files (x86)\zend\zendserver\gui\public" rewriteengine on rewriterule ^/$ /zendserver/ [r] rewriterule ^/login$ /zendserver/login [r] <directory "c:\program files (x86)\zend\zendserver\gui\public"> allowoverride allow </directory> </virtualhost> hear 10083 namevirtualhost 127.0.0.1:10083 <virtualhost 127.0.0.1:10083> customlog "c:\program files (x86)\zend\apache2\logs\access.log" mutual env=logme alias /userserver "c:\program files (x86)\zend\zendserver\userserver" documentroot "c:\program files (x86)\zend\zendserver\userserver" <directory "c:\program files (x86)\zend\zendserver\userserver"> allowoverride allow </directory> </virtualhost>
using link
http://forums.zend.com/viewtopic.php?f=69&t=5886&p=199643#p199643
the solution alter of httpd allowoverride's none all.
php apache apache2 zend-server
No comments:
Post a Comment