Acabei de descobrir que o problema não é no servidor... pois fora da minha rede os subdominios estao acessíveis e subindo o index.php perfeitinho...
aqui dentro que não funciona :( agora sim q nao sei oq fazer uhauahauhauahau Em 4 de maio de 2011 14:48, Harlei Liguori Marcelino <hligu...@gmail.com>escreveu: > Não sei se todos entenderam meu problema... vou tentar explicar outra > vez... > > O apache reconhece os subdominios, mas, não o index.php > > se eu usar um index.html ele abre... mas com index.php ele abre a pagina em > branco, como se não houvesse index para ser aberto... > > se eu tentar acessar assim: > > http://10.0.0.1/ > > ele abre uma pagina em branco > > porém se eu acessar assim: > > > http://10.0.0.1/index.php > > ele abre o arquivo certinho... > > entenderam agora meu problema? > > agradeço desde já!!! > > > > > 2011/5/4 Harlei Liguori Marcelino <hligu...@gmail.com> > >> ja fiz isso... >> >> obviamente se rodar puro nao aparece nada, mas se colocar index.php abre o >> phpinfo bonitinho... >> >> sinceramente nao sei mais oq testar :( >> >> será que ninguém ai teria uma configuração basica do apache que ache o >> index.php sozinho nos diretorios para me passar? :( >> >> ta dificil viu uahuaha >> >> >> 2011/5/4 Rodrigo B Brasil <rodrigobbra...@gmail.com> >> >>> Já tentou dar um phpinfo() pra ver as configurações do PHP no servidor? >>> >>> Cria uma página de teste e dentro dela: <?php phpinfo(); ?> >>> >>> -- >>> Rodrigo Bezerra Brasil >>> (91) 8115 5998 >>> Belém, PA, Brasil >>> '"Software Livre" é uma questão de liberdade, não de preço. Para entender >>> o conceito, você deve pensar em "liberdade de expressão", não em "cerveja >>> grátis".' >>> >>> >>> >>> >>> On Wed, May 4, 2011 at 12:01, Harlei Liguori Marcelino < >>> hligu...@gmail.com> wrote: >>> >>>> O log não retorna nada quando tento acessar com a URL sem o index.php >>>> >>>> quando coloco URL + index.php ele retorna a seguinte msg >>>> >>>> xxx.xx.x.xxx - - [04/May/2011:14:59:45 +0000] "GET /index.php HTTP/1.0" >>>> 200 514 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; >>>> rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13" >>>> >>>> esta é a msg do log >>>> >>>> >>>> >>>> >>>> 2011/5/4 Marcos Carraro <marcos.g.carr...@gmail.com> >>>> >>>>> E os logs volta o que? >>>>> -- >>>>> att >>>>> Marcos Carraro >>>>> Linux user #511627 >>>>> >>>>> >>>>> >>>>> >>>>> 2011/5/4 Harlei Liguori Marcelino <hligu...@gmail.com> >>>>> >>>>>> Nada :( >>>>>> >>>>>> continua dando pagina em branco se acessar www.xxx.com >>>>>> e abre o site se colocar www.xxx.com/index.php >>>>>> >>>>>> odeio esses bugs idiotas :( >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2011/5/4 Thiago Paulino <drop...@gmail.com> >>>>>> >>>>>>> Checa essas configs : >>>>>>> >>>>>>> >>>>>>> <IfModule dir_module> >>>>>>> DirectoryIndex index.html index.htm index.php >>>>>>> </IfModule> >>>>>>> >>>>>>> AddType application/x-httpd-php .php .php3 .phtml >>>>>>> >>>>>>> <IfModule mime_module> >>>>>>> # >>>>>>> # TypesConfig points to the file containing the list of mappings from >>>>>>> # filename extension to MIME-type. >>>>>>> # >>>>>>> TypesConfig etc/apache22/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 .php3 .phtml >>>>>>> AddType application/x-httpd-php-source .phps >>>>>>> >>>>>>> </IfModule> >>>>>>> >>>>>>> >>>>>>> 2011/5/4 Harlei Liguori Marcelino <hligu...@gmail.com> >>>>>>> >>>>>>>> Sim sim, reiniciei, dei reload, até windows tech de reiniciar o >>>>>>>> server eu fiz uahuahauh (mentira ;)) >>>>>>>> >>>>>>>> ### httpd.conf ### >>>>>>>> ServerTokens OS >>>>>>>> ServerRoot "/etc/httpd" >>>>>>>> PidFile run/httpd.pid >>>>>>>> Timeout 60 >>>>>>>> KeepAlive Off >>>>>>>> MaxKeepAliveRequests 100 >>>>>>>> KeepAliveTimeout 15 >>>>>>>> <IfModule prefork.c> >>>>>>>> StartServers 8 >>>>>>>> MinSpareServers 5 >>>>>>>> MaxSpareServers 20 >>>>>>>> ServerLimit 256 >>>>>>>> MaxClients 256 >>>>>>>> MaxRequestsPerChild 4000 >>>>>>>> </IfModule> >>>>>>>> <IfModule worker.c> >>>>>>>> StartServers 4 >>>>>>>> MaxClients 300 >>>>>>>> MinSpareThreads 25 >>>>>>>> MaxSpareThreads 75 >>>>>>>> ThreadsPerChild 25 >>>>>>>> MaxRequestsPerChild 0 >>>>>>>> </IfModule> >>>>>>>> Listen 80 >>>>>>>> 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 substitute_module modules/mod_substitute.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_ajp_module modules/mod_proxy_ajp.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 cgi_module modules/mod_cgi.so >>>>>>>> LoadModule version_module modules/mod_version.so >>>>>>>> Include conf.d/*.conf >>>>>>>> User apache >>>>>>>> Group apache >>>>>>>> ServerAdmin root@localhost >>>>>>>> UseCanonicalName Off >>>>>>>> DocumentRoot "/var/www/html" >>>>>>>> <Directory /> >>>>>>>> Options FollowSymLinks >>>>>>>> AllowOverride None >>>>>>>> </Directory> >>>>>>>> <Directory "/var/www/html"> >>>>>>>> Options Indexes FollowSymLinks >>>>>>>> AllowOverride None >>>>>>>> Order allow,deny >>>>>>>> Allow from all >>>>>>>> </Directory> >>>>>>>> <IfModule mod_userdir.c> >>>>>>>> UserDir disabled >>>>>>>> </IfModule> >>>>>>>> DirectoryIndex index.html index.php >>>>>>>> AccessFileName .htaccess >>>>>>>> <Files ~ "^\.ht"> >>>>>>>> Order allow,deny >>>>>>>> Deny from all >>>>>>>> </Files> >>>>>>>> TypesConfig /etc/mime.types >>>>>>>> DefaultType text/plain >>>>>>>> <IfModule mod_mime_magic.c> >>>>>>>> MIMEMagicFile conf/magic >>>>>>>> </IfModule> >>>>>>>> HostnameLookups Off >>>>>>>> ErrorLog logs/error_log >>>>>>>> LogLevel warn >>>>>>>> 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 >>>>>>>> CustomLog logs/access_log combined >>>>>>>> ServerSignature On >>>>>>>> Alias /icons/ "/var/www/icons/" >>>>>>>> <Directory "/var/www/icons"> >>>>>>>> Options Indexes MultiViews FollowSymLinks >>>>>>>> AllowOverride None >>>>>>>> Order allow,deny >>>>>>>> Allow from all >>>>>>>> </Directory> >>>>>>>> <IfModule mod_dav_fs.c> >>>>>>>> DAVLockDB /var/lib/dav/lockdb >>>>>>>> </IfModule> >>>>>>>> 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 >>>>>>>> ReadmeName README.html >>>>>>>> HeaderName HEADER.html >>>>>>>> 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 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 Prefer Fallback >>>>>>>> AddDefaultCharset UTF-8 >>>>>>>> AddType application/x-compress .Z >>>>>>>> AddType application/x-gzip .gz .tgz >>>>>>>> AddType application/x-x509-ca-cert .crt >>>>>>>> AddType application/x-pkcs7-crl .crl >>>>>>>> AddHandler type-map var >>>>>>>> AddType text/html .shtml >>>>>>>> AddOutputFilter INCLUDES .shtml >>>>>>>> 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> >>>>>>>> </IfModule> >>>>>>>> </IfModule> >>>>>>>> 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 >>>>>>>> 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 >>>>>>>> NameVirtualHost *:80 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ### virtual.conf ### >>>>>>>> >>>>>>>> <VirtualHost *:80> >>>>>>>> ServerName xx.xxxxxx.com >>>>>>>> DocumentRoot /var/www/html/xx >>>>>>>> </VirtualHost> >>>>>>>> >>>>>>>> <VirtualHost *:80> >>>>>>>> ServerName yyyyyy.com >>>>>>>> ServerAlias yyyyyy.com >>>>>>>> ServerAlias www.yyyyyy.com >>>>>>>> DocumentRoot /var/www/html/yyyyyy >>>>>>>> </VirtualHost> >>>>>>>> >>>>>>>> >>>>>>>> são estes os arquivos que estou usando... >>>>>>>> >>>>>>>> abraços >>>>>>>> >>>>>>>> Harlei >>>>>>>> >>>>>>>> >>>>>>>> Em 4 de maio de 2011 10:18, Thiago Henrique < >>>>>>>> cont...@thiagohenrique.com.br> escreveu: >>>>>>>> >>>>>>>> Uma pergunta muito estupida cara, mas, vc reiniciou o Apache ou >>>>>>>>> deu pelo menos um reload nele depois de mudar esta conf? >>>>>>>>> >>>>>>>>> Caso sim, vc pode passar o seu conf. e virtuais hosts para darmos >>>>>>>>> uma olhada? >>>>>>>>> >>>>>>>>> Em 04-05-2011 10:09, Harlei Liguori Marcelino escreveu: >>>>>>>>> >>>>>>>>> Exatamente isso meu amigo, >>>>>>>>> >>>>>>>>> a linha estava comentada... >>>>>>>>> >>>>>>>>> descomentei e aparentemente os subdominios funcionaram... fiz isso >>>>>>>>> uns 3 minutos antes do seu e-mail chegar uahauhauah >>>>>>>>> >>>>>>>>> agora estou eu brigando para o apache "descobrir" que index.php >>>>>>>>> também é um index que ele precisa abrir... já coloquei na linha : >>>>>>>>> "DirectoryIndex index.php index.html index.html.var" e nada dele >>>>>>>>> entender... >>>>>>>>> eu e o apache somos inimigos de longa data uahauha mas uma hora eu >>>>>>>>> venço ele >>>>>>>>> uahauhauahauha >>>>>>>>> >>>>>>>>> agradeço a ajuda >>>>>>>>> >>>>>>>>> att >>>>>>>>> >>>>>>>>> Harlei >>>>>>>>> >>>>>>>>> >>>>>>>>> Em 4 de maio de 2011 09:54, Thiago Henrique < >>>>>>>>> cont...@thiagohenrique.com.br> escreveu: >>>>>>>>> >>>>>>>>>> Fala Harlei, >>>>>>>>>> >>>>>>>>>> mano, procura no apache2.conf se existe a linha abaixo: >>>>>>>>>> >>>>>>>>>> NameVirtualHost *:80 >>>>>>>>>> >>>>>>>>>> Se não tiver, o problema deve ser isto. >>>>>>>>>> >>>>>>>>>> Atenciosamente, >>>>>>>>>> >>>>>>>>>> Em 03-05-2011 18:44, Harlei Liguori Marcelino escreveu: >>>>>>>>>> >>>>>>>>>> Amigos, >>>>>>>>>> >>>>>>>>>> para variar estou aqui apanhando por algum motivo q não sei qual é >>>>>>>>>> uahuahaua >>>>>>>>>> >>>>>>>>>> subi um apache e quero usar virtual hosts, utilizei a seguinte >>>>>>>>>> configuração dentro do diretório conf.d : >>>>>>>>>> >>>>>>>>>> virtual01.conf >>>>>>>>>> <virtualhost *:80> >>>>>>>>>> ServerName bla.blablabla.com >>>>>>>>>> DocumentRoot /var/www/html/blablabla >>>>>>>>>> </virtualhost> >>>>>>>>>> >>>>>>>>>> virtual02.conf >>>>>>>>>> <virtualhost *:80> >>>>>>>>>> ServerName cricri.com >>>>>>>>>> DocumentRoot /var/www/html/cricri >>>>>>>>>> </virtualhost> >>>>>>>>>> >>>>>>>>>> por algum motivo quando subo o apache retorna o seguinte erro: >>>>>>>>>> >>>>>>>>>> [error] VirtualHost *:80 -- mixing * ports and non-* ports with a >>>>>>>>>> NameVirtualHost address is not supported, proceeding with undefined >>>>>>>>>> results >>>>>>>>>> >>>>>>>>>> sinceramente nem sei se meu apache está reconhecendo as >>>>>>>>>> requisições de dominios ou se apenas esta redirecionando as >>>>>>>>>> requisições para >>>>>>>>>> o diretorio padrão. >>>>>>>>>> >>>>>>>>>> será que alguem pode me ajudar? fiz algumas pesquisas e nada de >>>>>>>>>> concreto me apareceu >>>>>>>>>> >>>>>>>>>> att >>>>>>>>>> >>>>>>>>>> Harlei >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >