Witam serdecznie,
Po zainstalowaniu wszystkiego co trzeba odnośnie serwera www, mam dziwne problemy...zawsze używałem fedory i nigdy nie miałem problemów.
Pierwsza sprawa:
Maszyna postawiona jest pod adresem ip np 55.1.1.225
po wpisaniu w przeglądarke http://55.1.1.225 kieruje mnie na www.55.1.1.225 i jest błąd nie odnaleziono strony.
Jeśli ktoś mógłby zerknąć na httpd.conf to byłbym wdzięczny.
Na dole dodana jest wirtualka...i po dodaniu w hosts, także po wpisaniu www.insidealer2.pl strona normalnie działa. katalog ze stronką to /var/www/html/inside_alert
natomiast...utworzyłem sobie plik php z phpinfo(), który znajduje sie w /var/www/html/info.php -> po wpisaniu 55.1.1.225/info.php (to samo jak wyzej... ;/ kieruje na www.55.1.1.225/info.php i błąd...)

  1. ServerRoot "/etc/httpd"
  2. PidFile /var/run/httpd.pid
  3. Timeout 120
  4. KeepAlive Off
  5. MaxKeepAliveRequests 100
  6. KeepAliveTimeout 15
  7.  
  8. <IfModule prefork.c>
  9. StartServers 8
  10. MinSpareServers 5
  11. MaxSpareServers 20
  12. ServerLimit 256
  13. MaxClients 256
  14. MaxRequestsPerChild 4000
  15. </IfModule>
  16.  
  17. <IfModule worker.c>
  18. StartServers 2
  19. MaxClients 150
  20. MinSpareThreads 25
  21. MaxSpareThreads 75
  22. ThreadsPerChild 25
  23. MaxRequestsPerChild 0
  24. </IfModule>
  25.  
  26. <IfModule mod_dir.c>
  27. DirectoryIndex index.html index.htm index.php default.php main.php index.php3 index.php4
  28. </IfModule>
  29.  
  30. Listen 80
  31. LoadModule auth_basic_module modules/mod_auth_basic.so
  32. LoadModule auth_digest_module modules/mod_auth_digest.so
  33. LoadModule authn_file_module modules/mod_authn_file.so
  34. LoadModule authn_alias_module modules/mod_authn_alias.so
  35. LoadModule authn_anon_module modules/mod_authn_anon.so
  36. LoadModule authn_dbm_module modules/mod_authn_dbm.so
  37. LoadModule authn_default_module modules/mod_authn_default.so
  38. LoadModule authz_host_module modules/mod_authz_host.so
  39. LoadModule authz_user_module modules/mod_authz_user.so
  40. LoadModule authz_owner_module modules/mod_authz_owner.so
  41. LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
  42. LoadModule authz_dbm_module modules/mod_authz_dbm.so
  43. LoadModule authz_default_module modules/mod_authz_default.so
  44. LoadModule ldap_module modules/mod_ldap.so
  45. LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
  46. LoadModule include_module modules/mod_include.so
  47. LoadModule log_config_module modules/mod_log_config.so
  48. LoadModule logio_module modules/mod_logio.so
  49. LoadModule env_module modules/mod_env.so
  50. LoadModule ext_filter_module modules/mod_ext_filter.so
  51. LoadModule mime_magic_module modules/mod_mime_magic.so
  52. LoadModule expires_module modules/mod_expires.so
  53. LoadModule deflate_module modules/mod_deflate.so
  54. LoadModule headers_module modules/mod_headers.so
  55. LoadModule usertrack_module modules/mod_usertrack.so
  56. LoadModule setenvif_module modules/mod_setenvif.so
  57. LoadModule mime_module modules/mod_mime.so
  58. LoadModule dav_module modules/mod_dav.so
  59. LoadModule status_module modules/mod_status.so
  60. LoadModule autoindex_module modules/mod_autoindex.so
  61. LoadModule info_module modules/mod_info.so
  62. LoadModule dav_fs_module modules/mod_dav_fs.so
  63. LoadModule vhost_alias_module modules/mod_vhost_alias.so
  64. LoadModule negotiation_module modules/mod_negotiation.so
  65. LoadModule dir_module modules/mod_dir.so
  66. LoadModule actions_module modules/mod_actions.so
  67. LoadModule speling_module modules/mod_speling.so
  68. LoadModule userdir_module modules/mod_userdir.so
  69. LoadModule alias_module modules/mod_alias.so
  70. LoadModule rewrite_module modules/mod_rewrite.so
  71. LoadModule proxy_module modules/mod_proxy.so
  72. LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  73. LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
  74. LoadModule proxy_http_module modules/mod_proxy_http.so
  75. LoadModule proxy_connect_module modules/mod_proxy_connect.so
  76. LoadModule cache_module modules/mod_cache.so
  77. LoadModule suexec_module modules/mod_suexec.so
  78. LoadModule disk_cache_module modules/mod_disk_cache.so
  79. LoadModule file_cache_module modules/mod_file_cache.so
  80. LoadModule mem_cache_module modules/mod_mem_cache.so
  81. LoadModule cgi_module modules/mod_cgi.so
  82. LoadModule version_module modules/mod_version.so
  83.  
  84. Include conf.d/*.conf
  85. User apache
  86. Group apache
  87. ServerAdmin root@localhost
  88. ServerName localhost
  89. UseCanonicalName Off
  90. DocumentRoot "/var/www/html"
  91. DirectoryIndex index.html index.html.var
  92. AccessFileName .htaccess
  93. TypesConfig /etc/mime.types
  94. DefaultType text/plain
  95. HostnameLookups Off
  96. ErrorLog logs/error_log
  97. LogLevel warn
  98. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  99. LogFormat "%h %l %u %t \"%r\" %>s %b" common
  100. LogFormat "%{Referer}i -> %U" referer
  101. LogFormat "%{User-agent}i" agent
  102. CustomLog logs/access_log combined
  103. ServerSignature On
  104. Alias /icons/ "/var/www/icons/"
  105. ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
  106.  
  107. <Directory />
  108. Options Indexes FollowSymLinks
  109. AllowOverride None
  110. Order allow,deny
  111. Allow from all
  112. </Directory>
  113.  
  114. <Directory "/var/www/html">
  115. Options Indexes FollowSymLinks
  116. AllowOverride None
  117. Order allow,deny
  118. Allow from all
  119. </Directory>
  120.  
  121. <IfModule mod_userdir.c>
  122. UserDir disable
  123. </IfModule>
  124.  
  125. <Files ~ "^\.ht">
  126. Order allow,deny
  127. Deny from all
  128. </Files>
  129.  
  130. <IfModule mod_mime_magic.c>
  131. MIMEMagicFile conf/magic
  132. </IfModule>
  133.  
  134. <Directory "/var/www/icons">
  135. Options Indexes MultiViews
  136. AllowOverride None
  137. Order allow,deny
  138. Allow from all
  139. </Directory>
  140.  
  141. <IfModule mod_dav_fs.c>
  142. DAVLockDB /var/lib/dav/lockdb
  143. </IfModule>
  144.  
  145.  
  146. <Directory "/var/www/cgi-bin">
  147. AllowOverride None
  148. Options None
  149. Order allow,deny
  150. Allow from all
  151. </Directory>
  152.  
  153. IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
  154. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  155. AddIconByType (TXT,/icons/text.gif) text/*
  156. AddIconByType (IMG,/icons/image2.gif) image/*
  157. AddIconByType (SND,/icons/sound2.gif) audio/*
  158. AddIconByType (VID,/icons/movie.gif) video/*
  159. AddIcon /icons/binary.gif .bin .exe
  160. AddIcon /icons/binhex.gif .hqx
  161. AddIcon /icons/tar.gif .tar
  162. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  163. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  164. AddIcon /icons/a.gif .ps .ai .eps
  165. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  166. AddIcon /icons/text.gif .txt
  167. AddIcon /icons/c.gif .c
  168. AddIcon /icons/p.gif .pl .py
  169. AddIcon /icons/f.gif .for
  170. AddIcon /icons/dvi.gif .dvi
  171. AddIcon /icons/uuencoded.gif .uu
  172. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  173. AddIcon /icons/tex.gif .tex
  174. AddIcon /icons/bomb.gif core
  175. AddIcon /icons/back.gif ..
  176. AddIcon /icons/hand.right.gif README
  177. AddIcon /icons/folder.gif ^^DIRECTORY^^
  178. AddIcon /icons/blank.gif ^^BLANKICON^^
  179. DefaultIcon /icons/unknown.gif
  180. ReadmeName README.html
  181. HeaderName HEADER.html
  182. IndexIgnore .questionmark.gif* *~ *# HEADER* README* RCS CVS *,v *,t
  183. AddLanguage ca .ca
  184. AddLanguage cs .cz .cs
  185. AddLanguage da .dk
  186. AddLanguage de .de
  187. AddLanguage el .el
  188. AddLanguage en .en
  189. AddLanguage eo .eo
  190. AddLanguage es .es
  191. AddLanguage et .et
  192. AddLanguage fr .fr
  193. AddLanguage he .he
  194. AddLanguage hr .hr
  195. AddLanguage it .it
  196. AddLanguage ja .ja
  197. AddLanguage ko .ko
  198. AddLanguage ltz .ltz
  199. AddLanguage nl .nl
  200. AddLanguage nn .nn
  201. AddLanguage no .no
  202. AddLanguage pl .po
  203. AddLanguage pt .pt
  204. AddLanguage pt-BR .pt-br
  205. AddLanguage ru .ru
  206. AddLanguage sv .sv
  207. AddLanguage zh-CN .zh-cn
  208. AddLanguage zh-TW .zh-tw
  209. 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
  210. ForceLanguagePriority Prefer Fallback
  211. AddDefaultCharset UTF-8
  212. AddType application/x-compress .Z
  213. AddType application/x-gzip .gz .tgz
  214. AddHandler type-map var
  215. AddType text/html .shtml
  216. AddOutputFilter INCLUDES .shtml
  217. Alias /error/ "/var/www/error/"
  218.  
  219. <IfModule mod_negotiation.c>
  220. <IfModule mod_include.c>
  221. <Directory "/var/www/error">
  222. AllowOverride None
  223. Options IncludesNoExec
  224. AddOutputFilter Includes html
  225. AddHandler type-map var
  226. Order allow,deny
  227. Allow from all
  228. LanguagePriority en es de fr
  229. ForceLanguagePriority Prefer Fallback
  230. </Directory>
  231. </IfModule>
  232. </IfModule>
  233.  
  234. NameVirtualHost *:80
  235.  
  236. <Directory "/usr/share/phpMyAdmin">
  237. Order allow,deny
  238. Allow from all
  239. </Directory>
  240.  
  241. ##################BS INSIDE ALERT####################
  242. <VirtualHost *:80>
  243. DocumentRoot /var/www/html/inside_alert
  244. ServerName insidealert2.pl
  245. ServerAlias www.insidealert2.pl
  246. </VirtualHost>
  247. <Directory "/var/www/html/inside_alert">
  248. Options +FollowSymLinks
  249. RewriteEngine On
  250. RewriteCond %{HTTP_HOST} !^www\. [NC]
  251. RewriteRule ^(.*)$ <a href="http://www.%{HTTP_HOST}/$1" target="_blank">http://www.%{HTTP_HOST}/$1</a> [R=301,L]
  252. RewriteRule ^$ index.php [L]
  253. RewriteRule ^/$ index.php [L]
  254. RewriteRule ^index.html$ index.php [L]
  255. RewriteRule ^index.html/$ index.php [L]
  256. RewriteRule ^([a-zA-Z0-9_\-]+)$ index.php?link=$1 [L]
  257. RewriteRule ^([a-zA-Z0-9_\-]+),([^\,]+)$ index.php?link=$1&option=$2 [L]
  258. RewriteRule ^([a-zA-Z0-9_\-]+),([^\,]+),([^\,]+)$ index.php?link=$1&option=$2&category=$3 [L]
  259. </Directory>