1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Apache Server Frequently Asked Questions</TITLE>
</HEAD>
<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#000080"
ALINK="#FF0000"
>
<DIV ALIGN="CENTER">
<IMG SRC="../images/sub.gif" ALT="[APACHE DOCUMENTATION]">
<H3>
Apache HTTP Server Version 1.3
</H3>
</DIV>
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
$Revision: 1.118 $ ($Date: 1998/05/30 01:27:25 $)
</P>
<P>
The latest version of this FAQ is always available from the main
Apache web site, at
<<A
HREF="http://www.apache.org/docs/misc/FAQ.html"
REL="Help"
><SAMP>http://www.apache.org/docs/misc/FAQ.html</SAMP></A>>.
</P>
<!-- Notes about changes: -->
<!-- - If adding a relative link to another part of the -->
<!-- documentation, *do* include the ".html" portion. There's a -->
<!-- good chance that the user will be reading the documentation -->
<!-- on his own system, which may not be configured for -->
<!-- multiviews. -->
<!-- - When adding items, make sure they're put in the right place -->
<!-- - verify that the numbering matches up. -->
<!-- - *Don't* use <PRE></PRE> blocks - they don't appear -->
<!-- correctly in a reliable way when this is converted to text -->
<!-- with Lynx. Use <DL><DD><CODE>xxx<BR>xx</CODE></DD></DL> -->
<!-- blocks inside a <P></P> instead. This is necessary to get -->
<!-- the horizontal and vertical indenting right. -->
<!-- - Don't forget to include an HR tag after the last /P tag -->
<!-- but before the /LI in an item. -->
<P>
If you are reading a text-only version of this FAQ, you may find numbers
enclosed in brackets (such as "[12]"). These refer to the list of
reference URLs to be found at the end of the document. These references
do not appear, and are not needed, for the hypertext version.
</P>
<H2>The Questions</H2>
<!-- Stuff to Add: -->
<!-- - can't bind to port 80 -->
<!-- - permission denied -->
<!-- - address already in use -->
<!-- - mod_auth & passwd lines "user:pw:.*" - ++1st colon onward is -->
<!-- treated as pw, not just ++1st to --2nd. -->
<!-- - SSL: -->
<!-- - Can I use Apache-SSL for free in Canada? -->
<!-- - Why can't I use Apache-SSL in the U.S.? -->
<!-- - How can I found out how many visitors my site gets? -->
<!-- - How do I add a counter? -->
<!-- - How do I configure Apache as a proxy? -->
<!-- - What browsers support HTTP/1.1? -->
<!-- - What's the point of vhosts-by-name is there aren't any -->
<!-- HTTP/1.1 browsers? -->
<!-- - Is there an Apache for W95/WNT? -->
<!-- - Why does Apache die when a vhost can't be DNS-resolved? -->
<!-- - Why do I get "send lost connection" messages in my error -->
<!-- log? -->
<!-- - specifically consider .pdf files which seem to cause this -->
<!-- a lot when accessed via the plugin ... and also mention -->
<!-- how range-requests can cause bytes served < file size -->
<!-- - Why do directory indexes appear as garbage? (A: -lucb) -->
<!-- - How do I add a footer to all pages offered by my server? -->
<!-- - Fix midi question; a bigger problem than midi vs. x-midi is -->
<!-- the simple fact that older versions of Apache (and new ones -->
<!-- that have been upgraded without upgrading the mime.types -->
<!-- file) don't have the type listed at all. -->
<!-- - Why is my .htaccess ignored? -->
<!-- - RewriteRule /~fraggle/* /cgi-bin/fraggle.pl does not work -->
<!-- - how do I disable authentication for a subdirectory? -->
<!-- (A: you can't but "satisfy any; allow from all" can be close -->
<!-- - '400 malformed request' on Win32 might mean stale proxy; see -->
<!-- PR #2300. -->
<UL>
<LI><STRONG>Background</STRONG>
<OL START=1>
<LI><A HREF="#what">What is Apache?</A>
</LI>
<LI><A HREF="#why">Why was Apache created?</A>
</LI>
<LI><A HREF="#relate">How does The Apache Group's work relate to
other servers?</A>
</LI>
<LI><A HREF="#name">Why the name "Apache"?</A>
</LI>
<LI><A HREF="#compare">OK, so how does Apache compare to other servers?</A>
</LI>
<LI><A HREF="#tested">How thoroughly tested is Apache?</A>
</LI>
<LI><A HREF="#future">What are the future plans for Apache?</A>
</LI>
<LI><A HREF="#support">Whom do I contact for support?</A>
</LI>
<LI><A HREF="#more">Is there any more information on Apache?</A>
</LI>
<LI><A HREF="#where">Where can I get Apache?</A>
</LI>
</OL>
</LI>
<LI><STRONG>Technical Questions</STRONG>
<OL START=11>
<LI><A HREF="#what2do">"Why can't I ...? Why won't ...
work?" What to do in case of problems</A>
</LI>
<LI><A HREF="#compatible">How compatible is Apache with my existing
NCSA 1.3 setup?</A>
</LI>
<LI><A HREF="#CGIoutsideScriptAlias">How do I enable CGI execution
in directories other than the ScriptAlias?</A>
</LI>
<LI><A HREF="#premature-script-headers">What does it mean when my
CGIs fail with "<SAMP>Premature end of script
headers</SAMP>"?</A>
</LI>
<LI><A HREF="#ssi-part-i">How do I enable SSI (parsed HTML)?</A>
</LI>
<LI><A HREF="#ssi-part-ii">Why don't my parsed files get cached?</A>
</LI>
<LI><A HREF="#ssi-part-iii">How can I have my script output parsed?</A>
</LI>
<LI><A HREF="#proxy">Does or will Apache act as a Proxy server?</A>
</LI>
<LI><A HREF="#multiviews">What are "multiviews"?</A>
</LI>
<LI><A HREF="#fdlim">Why can't I run more than <<EM>n</EM>>
virtual hosts?</A>
</LI>
<LI><A HREF="#freebsd-setsize">Can I increase <SAMP>FD_SETSIZE</SAMP>
on FreeBSD?</A>
</LI>
<LI><A HREF="#POSTnotallowed">Why do I keep getting "Method Not
Allowed" for form POST requests?</A>
</LI>
<LI><A HREF="#passwdauth">Can I use my <SAMP>/etc/passwd</SAMP> file
for Web page authentication?</A>
</LI>
<LI><A HREF="#errordoc401">Why doesn't my <CODE>ErrorDocument
401</CODE> work?</A>
</LI>
<LI><A HREF="#errordocssi">How can I use <CODE>ErrorDocument</CODE>
and SSI to simplify customized error messages?</A>
</LI>
<LI><A HREF="#setgid">Why do I get "<SAMP>setgid: Invalid
argument</SAMP>" at startup?</A>
</LI>
<LI><A HREF="#cookies1">Why does Apache send a cookie on every response?</A>
</LI>
<LI><A HREF="#cookies2">Why don't my cookies work, I even compiled in
<SAMP>mod_cookies</SAMP>?</A>
</LI>
<LI><A HREF="#jdk1-and-http1.1">Why do my Java app[let]s give me plain text
when I request an URL from an Apache server?</A>
</LI>
<LI><A HREF="#putsupport">Why can't I publish to my Apache server
using PUT on Netscape Gold and other programs?</A>
</LI>
<LI><A HREF="#fastcgi">Why isn't FastCGI included with Apache any
more?</A>
</LI>
<LI><A HREF="#nodelay">Why am I getting "<SAMP>httpd: could not
set socket option TCP_NODELAY</SAMP>" in my error log?</A>
</LI>
<LI><A HREF="#peerreset">Why am I getting "<SAMP>connection
reset by peer</SAMP>" in my error log?</A>
</LI>
<LI><A HREF="#nph-scripts">How can I get my script's output without
Apache buffering it? Why doesn't my server push work?</A>
</LI>
<LI><A HREF="#linuxiovec">Why do I get complaints about redefinition
of "<CODE>struct iovec</CODE>" when compiling under Linux?</A>
</LI>
<LI><A HREF="#wheres-the-dump">The errorlog says Apache dumped core,
but where's the dump file?</A>
</LI>
<LI><A HREF="#dnsauth">Why isn't restricting access by host or domain name
working correctly?</A>
</LI>
<LI><A HREF="#SSL-i">Why doesn't Apache include SSL?</A>
</LI>
<LI><A HREF="#HPUX-core">Why do I get core dumps under HPUX using
HP's ANSI C compiler?</A>
</LI>
<LI><A HREF="#midi">How do I get Apache to send a MIDI file so the
browser can play it?</A>
</LI>
<LI><A HREF="#cantbuild">Why won't Apache compile with my
system's <SAMP>cc</SAMP>?</A>
</LI>
<LI><A HREF="#addlog">How do I add browsers and referrers to my logs?</A>
</LI>
<LI><A HREF="#bind8.1">Why do I get an error about an undefined
reference to "<SAMP>__inet_ntoa</SAMP>" or other
<SAMP>__inet_*</SAMP> symbols?</A>
</LI>
<LI><A HREF="#set-servername">Why does accessing directories only work
when I include the trailing "/"
(<EM>e.g.</EM>, <SAMP>http://foo.domain.com/~user/</SAMP>) but
not when I omit it
(<EM>e.g.</EM>, <SAMP>http://foo.domain.com/~user</SAMP>)?</A>
</LI>
<LI><A HREF="#user-authentication">How do I set up Apache to require
a username and password to access certain documents?</A>
</LI>
<LI><A HREF="#remote-user-var">Why is the environment variable
<SAMP>REMOTE_USER</SAMP> not set?</A>
</LI>
<LI><A HREF="#remote-auth-only">How do I set up Apache to allow access
to certain documents only if a site is either a local site
<EM>or</EM> the user supplies a password and username?</A>
</LI>
<LI><A HREF="#no-info-directives">Why doesn't mod_info list any
directives?</A>
</LI>
<LI><A HREF="#linux-shmget">When I run it under Linux I get "shmget:
function not found", what should I do?</A>
</LI>
<LI><A HREF="#authauthoritative">Why does my authentication give
me a server error?</A>
</LI>
<LI><A HREF="#auth-on-same-machine">Do I have to keep the (mSQL)
authentication information on the same machine?</A>
</LI>
<LI><A HREF="#msql-slow">Why is my mSQL authentication terribly slow?</A>
</LI>
<LI><A HREF="#rewrite-more-config">Where can I find mod_rewrite rulesets
which already solve particular URL-related problems?</A>
</LI>
<LI><A HREF="#rewrite-article">Where can I find any published information
about URL-manipulations and mod_rewrite?</A>
</LI>
<LI><A HREF="#rewrite-complexity">Why is mod_rewrite so difficult to learn
and seems so complicated?</A>
</LI>
<LI><A HREF="#rewrite-dontwork">What can I do if my RewriteRules don't work
as expected?</A>
</LI>
<LI><A HREF="#rewrite-prefixdocroot">Why don't some of my URLs get
prefixed with DocumentRoot when using mod_rewrite?</A>
</LI>
<LI><A HREF="#rewrite-nocase">How can I make all my URLs case-insensitive
with mod_rewrite?</A>
</LI>
<LI><A HREF="#rewrite-virthost">Why are RewriteRules in my VirtualHost
parts ignored?</A>
</LI>
<LI><A HREF="#rewrite-envwhitespace">How can I use strings with whitespaces
in RewriteRule's ENV flag?</A>
</LI>
<LI><A HREF="#cgi-spec">Where can I find the "CGI
specification"?</A>
</LI>
<LI><A HREF="#year2000">Is Apache Year 2000 compliant?</A>
</LI>
<LI><A HREF="#namevhost">I upgraded to Apache 1.3b and now my
virtual hosts don't work!</A>
</LI>
<LI><A HREF="#redhat">I'm using RedHat Linux and I have problems with httpd
dying randomly or not restarting properly</A>
</LI>
<LI><A HREF="#stopping">I upgraded from an Apache version earlier
than 1.2.0 and suddenly I have problems with Apache dying randomly
or not restarting properly</A>
</LI>
<LI><A HREF="#redhat-htm">I'm using RedHat Linux and my .htm files are
showing up as HTML source rather than being formatted!</A>
</LI>
<LI><A HREF="#glibc-crypt">I'm using RedHat Linux 5.0, or some other
<SAMP>glibc</SAMP>-based Linux system, and I get errors with the
<CODE>crypt</CODE> function when I attempt to build Apache 1.2.</A>
</LI>
<LI><A HREF="#nfslocking">Server hangs, or fails to start, and/or error log
fills with "<SAMP>fcntl: F_SETLKW: No record locks
available</SAMP>" or similar messages</A>
</LI>
<LI><A HREF="#zoom">What's the best hardware/operating system/... How do
I get the most out of my Apache Web server?</A>
</LI>
<LI><A HREF="#regex">What are "regular expressions"?</A>
</LI>
<li><a href="#broken-gcc">I'm using gcc and I get some compilation errors, what
is wrong?</a>
</li>
</OL>
</LI>
</UL>
<HR>
<H2>The Answers</H2>
<H3>
Background
</H3>
<OL START=1>
<LI><A NAME="what">
<STRONG>What is Apache?</STRONG>
</A>
<P>
Apache was originally based on code and ideas found in the most
popular HTTP server of the time.. NCSA httpd 1.3 (early 1995). It has
since evolved into a far superior system which can rival (and probably
surpass) almost any other UNIX based HTTP server in terms of functionality,
efficiency and speed.
</P>
<P>
Since it began, it has been completely rewritten, and includes many new
features. Apache is, as of January 1997, the most popular WWW server on
the Internet, according to the
<A HREF="http://www.netcraft.com/Survey/">Netcraft Survey</A>.
</P>
<HR>
</LI>
<LI><A NAME="why">
<STRONG>Why was Apache created?</STRONG>
</A>
<P>
To address the concerns of a group of WWW providers and part-time httpd
programmers that httpd didn't behave as they wanted it to behave.
Apache is an entirely volunteer effort, completely funded by its
members, not by commercial sales.
</P>
<HR>
</LI>
<LI><A NAME="relate">
<STRONG>How does The Apache Group's work relate to other
server efforts, such as NCSA's?</STRONG>
</A>
<P>
We, of course, owe a great debt to NCSA and their programmers for
making the server Apache was based on. We now, however, have our own
server, and our project is mostly our own. The Apache Project is an
entirely independent venture.
</P>
<HR>
</LI>
<LI><A NAME="name">
<STRONG>Why the name "Apache"?</STRONG>
</A>
<P>
A cute name which stuck. Apache is "<STRONG>A
PA</STRONG>t<STRONG>CH</STRONG>y server". It was
based on some existing code and a series of "patch files".
</P>
<HR>
</LI>
<LI><A NAME="compare">
<STRONG>OK, so how does Apache compare to other servers?</STRONG>
</A>
<P>
For an independent assessment, see
<A HREF="http://webcompare.internet.com/chart.html">Web Compare</A>'s
comparison chart.
</P>
<P>
Apache has been shown to be substantially faster than many other
free servers. Although certain commercial servers have claimed to
surpass Apache's speed (it has not been demonstrated that any of these
"benchmarks" are a good way of measuring WWW server speed at any
rate), we feel that it is better to have a mostly-fast free server
than an extremely-fast server that costs thousands of dollars. Apache
is run on sites that get millions of hits per day, and they have
experienced no performance difficulties.
</P>
<HR>
</LI>
<LI><A NAME="tested">
<STRONG>How thoroughly tested is Apache?</STRONG>
</A>
<P>
Apache is run on over 500,000 Internet servers (as of July 1997). It has
been tested thoroughly by both developers and users. The Apache Group
maintains rigorous standards before releasing new versions of their
server, and our server runs without a hitch on over one third of all
WWW servers available on the Internet. When bugs do show up, we
release patches and new versions as soon as they are available.
</P>
<P>
The Apache project's web site includes a page with a partial list of
<A HREF="http://www.apache.org/info/apache_users.html">sites running
Apache</A>.
</P>
<HR>
</LI>
<LI><A NAME="future">
<STRONG>What are the future plans for Apache?</STRONG>
</A>
<P>
<UL>
<LI>to continue as a public domain HTTP server,
</LI>
<LI>to keep up with advances in HTTP protocol and web developments in
general,
</LI>
<LI>to collect suggestions for fixes/improvements from its users,
</LI>
<LI>to respond to needs of large volume providers as well as
occasional users.
</LI>
</UL>
</P>
<HR>
</LI>
<LI><A NAME="support">
<STRONG>Whom do I contact for support?</STRONG>
</A>
<P>
There is no official support for Apache. None of the developers want to
be swamped by a flood of trivial questions that can be resolved elsewhere.
Bug reports and suggestions should be sent <EM>via</EM>
<A HREF="http://www.apache.org/bug_report.html">the bug report page</A>.
Other questions should be directed to the
<A HREF="news:comp.infosystems.www.servers.unix"
>comp.infosystems.www.servers.unix</A> or <A HREF=
"news:comp.infosystems.www.servers.ms-windows"
>comp.infosystems.www.servers.ms-windows</A>
newsgroup (as appropriate for the platform you use), where some of the
Apache team lurk, in the company of many other httpd gurus who
should be able to help.
</P>
<P>
Commercial support for Apache is, however, available from a number
of third parties.
</P>
<HR>
</LI>
<LI><A NAME="more">
<STRONG>Is there any more information available on
Apache?</STRONG>
</A>
<P>
Indeed there is. See the main
<A HREF="http://www.apache.org/">Apache web site</A>.
There is also a regular electronic publication called
<A HREF="http://www.apacheweek.com/" REL="Help"><CITE>Apache Week</CITE></A>
available. Links to relevant <CITE>Apache Week</CITE> articles are
included below where appropriate. There are also some
<A HREF="http://www.apache.org/info/apache_books.html"
>Apache-specific books</A> available.
</P>
<HR>
</LI>
<LI><A NAME="where">
<STRONG>Where can I get Apache?</STRONG>
</A>
<P>
You can find out how to download the source for Apache at the
project's
<A HREF="http://www.apache.org/">main web page</A>.
</P>
<HR>
</LI>
</OL>
<H3>Technical Questions</H3>
<OL START=11>
<LI><A NAME="what2do">
<STRONG>"Why can't I ...? Why won't ... work?" What to
do in case of problems</STRONG>
</A>
<P>
If you are having trouble with your Apache server software, you should
take the following steps:
</P>
<OL>
<LI><STRONG>Check the errorlog!</STRONG>
<P>
Apache tries to be helpful when it encounters a problem. In many
cases, it will provide some details by writing one or messages to
the server error log. Sometimes this is enough for you to diagnose
& fix the problem yourself (such as file permissions or the like).
The default location of the error log is
<SAMP>/usr/local/apache/logs/error_log</SAMP>, but see the
<A HREF="../mod/core.html#errorlog"><SAMP>ErrorLog</SAMP></A>
directive in your config files for the location on your server.
</P>
</LI>
<LI><STRONG>Check the
<A HREF="http://www.apache.org/docs/misc/FAQ.html">FAQ</A>!</STRONG>
<P>
The latest version of the Apache Frequently-Asked Questions list can
always be found at the main Apache web site.
</P>
</LI>
<LI><STRONG>Check the Apache bug database</STRONG>
<P>
Most problems that get reported to The Apache Group are recorded in
the
<A HREF="http://bugs.apache.org/">bug database</A>.
<EM><STRONG>Please</STRONG> check the existing reports, open
<STRONG>and</STRONG> closed, before adding one.</EM> If you find
that your issue has already been reported, please <EM>don't</EM> add
a "me, too" report. If the original report isn't closed
yet, we suggest that you check it periodically. You might also
consider contacting the original submitter, because there may be an
email exchange going on about the issue that isn't getting recorded
in the database.
</P>
</LI>
<LI><STRONG>Ask in the <SAMP>comp.infosystems.www.servers.unix</SAMP>
USENET newsgroup</STRONG>
<P>
A lot of common problems never make it to the bug database because
there's already high Q&A traffic about them in the
<A HREF="news:comp.infosystems.www.servers.unix"
><SAMP>comp.infosystems.www.servers.unix</SAMP></A>
newsgroup. Many Apache users, and some of the developers, can be
found roaming its virtual halls, so it is suggested that you seek
wisdom there. The chances are good that you'll get a faster answer
there than from the bug database, even if you <EM>don't</EM> see
your question already posted.
</P>
</LI>
<LI><STRONG>If all else fails, report the problem in the bug
database</STRONG>
<P>
If you've gone through those steps above that are appropriate and
have obtained no relief, then please <EM>do</EM> let The Apache
Group know about the problem by
<A HREF="http://www.apache.org/bug_report.html">logging a bug report</A>.
</P>
<P>
If your problem involves the server crashing and generating a core
dump, please include a backtrace (if possible). As an example,
</P>
<P>
<DL>
<DD><CODE># cd <EM>ServerRoot</EM><BR>
# dbx httpd core<BR>
(dbx) where</CODE>
</DD>
</DL>
</P>
<P>
(Substitute the appropriate locations for your
<SAMP>ServerRoot</SAMP> and your <SAMP>httpd</SAMP> and
<SAMP>core</SAMP> files. You may have to use <CODE>gdb</CODE>
instead of <CODE>dbx</CODE>.)
</P>
</LI>
</OL>
<HR>
</LI>
<LI><A NAME="compatible">
<STRONG>How compatible is Apache with my existing NCSA 1.3
setup?</STRONG>
</A>
<P>
Apache attempts to offer all the features and configuration options
of NCSA httpd 1.3, as well as many of the additional features found in
NCSA httpd 1.4 and NCSA httpd 1.5.
</P>
<P>
NCSA httpd appears to be moving toward adding experimental features
which are not generally required at the moment. Some of the experiments
will succeed while others will inevitably be dropped. The Apache
philosophy is to add what's needed as and when it is needed.
</P>
<P>
Friendly interaction between Apache and NCSA developers should ensure
that fundamental feature enhancements stay consistent between the two
servers for the foreseeable future.
</P>
<HR>
</LI>
<LI><A NAME="CGIoutsideScriptAlias">
<STRONG>How do I enable CGI execution in directories other than
the ScriptAlias?</STRONG>
</A>
<P>
Apache recognizes all files in a directory named as a
<A HREF="../mod/mod_alias.html#scriptalias"><SAMP>ScriptAlias</SAMP></A>
as being eligible for execution rather than processing as normal
documents. This applies regardless of the file name, so scripts in a
ScriptAlias directory don't need to be named
"<SAMP>*.cgi</SAMP>" or "<SAMP>*.pl</SAMP>" or
whatever. In other words, <EM>all</EM> files in a ScriptAlias
directory are scripts, as far as Apache is concerned.
</P>
<P>
To persuade Apache to execute scripts in other locations, such as in
directories where normal documents may also live, you must tell it how
to recognize them - and also that it's okay to execute them. For
this, you need to use something like the
<A HREF="../mod/mod_mime.html#addhandler"><SAMP>AddHandler</SAMP></A>
directive.
</P>
<P>
<OL>
<LI>In an appropriate section of your server configuration files, add
a line such as
<P>
<DL>
<DD><CODE>AddHandler cgi-script .cgi</CODE>
</DD>
</DL>
</P>
<P>
The server will then recognize that all files in that location (and
its logical descendants) that end in "<SAMP>.cgi</SAMP>"
are script files, not documents.
</P>
</LI>
<LI>Make sure that the directory location is covered by an
<A HREF="../mod/core.html#options"><SAMP>Options</SAMP></A>
declaration that includes the <SAMP>ExecCGI</SAMP> option.
</LI>
</OL>
</P>
<P>
In some situations, you might not want to actually
allow all files named "<SAMP>*.cgi</SAMP>" to be executable.
Perhaps all you want is to enable a particular file in a normal directory to
be executable. This can be alternatively accomplished
<EM>via</EM> <A HREF="../mod/mod_rewrite.html"><SAMP>mod_rewrite</SAMP></A>
and the following steps:
</P>
<P>
<OL>
<LI>Locally add to the corresponding <SAMP>.htaccess</SAMP> file a ruleset
similar to this one:
<P>
<DL>
<DD><CODE>RewriteEngine on
<BR>
RewriteBase /~foo/bar/
<BR>
RewriteRule ^quux\.cgi$ - [T=application/x-httpd-cgi]</CODE>
</DD>
</DL>
</P>
</LI>
<LI>Make sure that the directory location is covered by an
<A HREF="../mod/core.html#options"><SAMP>Options</SAMP></A>
declaration that includes the <SAMP>ExecCGI</SAMP> and
<SAMP>FollowSymLinks</SAMP> option.
</LI>
</OL>
</P>
<HR>
</LI>
<LI><A NAME="premature-script-headers">
<STRONG>What does it mean when my CGIs fail with
"<SAMP>Premature end of script headers</SAMP>"?</STRONG>
</A>
<P>
It means just what it says: the server was expecting a complete set of
HTTP headers (one or more followed by a blank line), and didn't get
them.
</P>
<P>
The most common cause of this problem is the script dying before
sending the complete set of headers, or possibly any at all, to the
server. To see if this is the case, try running the script standalone
from an interactive session, rather than as a script under the server.
If you get error messages, this is almost certainly the cause of the
"premature end of script headers" message.
</P>
<P>
The second most common cause of this (aside from people not
outputting the required headers at all) is a result of an interaction
with Perl's output buffering. To make Perl flush its buffers
after each output statement, insert the following statements around
the <CODE>print</CODE> or <CODE>write</CODE> statements that send your
HTTP headers:
</P>
<P>
<DL>
<DD><CODE>{<BR>
local ($oldbar) = $|;<BR>
$cfh = select (STDOUT);<BR>
$| = 1;<BR>
#<BR>
# print your HTTP headers here<BR>
#<BR>
$| = $oldbar;<BR>
select ($cfh);<BR>
}</CODE>
</DD>
</DL>
</P>
<P>
This is generally only necessary when you are calling external
programs from your script that send output to stdout, or if there will
be a long delay between the time the headers are sent and the actual
content starts being emitted. To maximize performance, you should
turn buffer-flushing back <EM>off</EM> (with <CODE>$| = 0</CODE> or the
equivalent) after the statements that send the headers, as displayed
above.
</P>
<P>
If your script isn't written in Perl, do the equivalent thing for
whatever language you <EM>are</EM> using (<EM>e.g.</EM>, for C, call
<CODE>fflush()</CODE> after writing the headers).
</P>
<HR>
</LI>
<LI><A NAME="ssi-part-i">
<STRONG>How do I enable SSI (parsed HTML)?</STRONG>
</A>
<P>
SSI (an acronym for Server-Side Include) directives allow static HTML
documents to be enhanced at run-time (<EM>e.g.</EM>, when delivered to
a client by Apache). The format of SSI directives is covered
in the <A HREF="../mod/mod_include.html">mod_include manual</A>;
suffice it to say that Apache supports not only SSI but
xSSI (eXtended SSI) directives.
</P>
<P>
Processing a document at run-time is called <EM>parsing</EM> it; hence
the term "parsed HTML" sometimes used for documents that
contain SSI instructions. Parsing tends to be <EM>extremely</EM>
resource-consumptive, and is not enabled by default. It can also
interfere with the cachability of your documents, which can put a
further load on your server. (see the
<A HREF="#ssi-part-ii">next question</A> for more information about this.)
</P>
<P>
To enable SSI processing, you need to
</P>
<UL>
<LI>Build your server with the
<A HREF="../mod/mod_include.html"><SAMP>mod_include</SAMP></A>
module. This is normally compiled in by default.
</LI>
<LI>Make sure your server configuration files have an
<A HREF="../mod/core.html#options"><SAMP>Options</SAMP></A>
directive which permits <SAMP>Includes</SAMP>.
</LI>
<LI>Make sure that the directory where you want the SSI documents to
live is covered by the "server-parsed" content handler,
either explicitly or in some ancestral location. That can be done
with the following
<A HREF="../mod/mod_mime.html#addhandler"><SAMP>AddHandler</SAMP></A>
directive:
<P>
<DL>
<DD><CODE>AddHandler server-parsed .shtml</CODE>
</DD>
</DL>
</P>
<P>
This indicates that all files ending in ".shtml" in that
location (or its descendants) should be parsed. Note that using
".html" will cause all normal HTML files to be parsed,
which may put an inordinate load on your server.
</P>
</LI>
</UL>
<P>
For additional information, see the <CITE>Apache Week</CITE> article on
<A HREF="http://www.apacheweek.com/features/ssi" REL="Help"
><CITE>Using Server Side Includes</CITE></A>.
</P>
<HR>
</LI>
<LI><A NAME="ssi-part-ii">
<STRONG>Why don't my parsed files get cached?</STRONG>
</A>
<P>
Since the server is performing run-time processing of your SSI
directives, which may change the content shipped to the client, it
can't know at the time it starts parsing what the final size of the
result will be, or whether the parsed result will always be the same.
This means that it can't generate <SAMP>Content-Length</SAMP> or
<SAMP>Last-Modified</SAMP> headers. Caches commonly work by comparing
the <SAMP>Last-Modified</SAMP> of what's in the cache with that being
delivered by the server. Since the server isn't sending that header
for a parsed document, whatever's doing the caching can't tell whether
the document has changed or not - and so fetches it again to be on the
safe side.
</P>
<P>
You can work around this in some cases by causing an
<SAMP>Expires</SAMP> header to be generated. (See the
<A HREF="../mod/mod_expires.html" REL="Help"><SAMP>mod_expires</SAMP></A>
documentation for more details.) Another possibility is to use the
<A HREF="../mod/mod_include.html#xbithack" REL="Help"
><SAMP>XBitHack Full</SAMP></A>
mechanism, which tells Apache to send (under certain circumstances
detailed in the XBitHack directive description) a
<SAMP>Last-Modified</SAMP> header based upon the last modification
time of the file being parsed. Note that this may actually be lying
to the client if the parsed file doesn't change but the SSI-inserted
content does; if the included content changes often, this can result
in stale copies being cached.
</P>
<HR>
</LI>
<LI><A NAME="ssi-part-iii">
<STRONG>How can I have my script output parsed?</STRONG>
</A>
<P>
So you want to include SSI directives in the output from your CGI
script, but can't figure out how to do it?
The short answer is "you can't." This is potentially
a security liability and, more importantly, it can not be cleanly
implemented under the current server API. The best workaround
is for your script itself to do what the SSIs would be doing.
After all, it's generating the rest of the content.
</P>
<P>
This is a feature The Apache Group hopes to add in the next major
release after 1.3.
</P>
<HR>
</LI>
<LI><A NAME="proxy">
<STRONG>Does or will Apache act as a Proxy server?</STRONG>
</A>
<P>
Apache version 1.1 and above comes with a
<A HREF="../mod/mod_proxy.html">proxy module</A>.
If compiled in, this will make Apache act as a caching-proxy server.
</P>
<HR>
</LI>
<LI><A NAME="multiviews">
<STRONG>What are "multiviews"?</STRONG>
</A>
<P>
"Multiviews" is the general name given to the Apache
server's ability to provide language-specific document variants in
response to a request. This is documented quite thoroughly in the
<A HREF="../content-negotiation.html" REL="Help">content negotiation</A>
description page. In addition, <CITE>Apache Week</CITE> carried an
article on this subject entitled
"<A HREF="http://www.apacheweek.com/features/negotiation" REL="Help"
><CITE>Content Negotiation Explained</CITE></A>".
</P>
<HR>
</LI>
<LI><A NAME="fdlim">
<STRONG>Why can't I run more than <<EM>n</EM>>
virtual hosts?</STRONG>
</A>
<P>
You are probably running into resource limitations in your
operating system. The most common limitation is the
<EM>per</EM>-process limit on <STRONG>file descriptors</STRONG>,
which is almost always the cause of problems seen when adding
virtual hosts. Apache often does not give an intuitive error
message because it is normally some library routine (such as
<CODE>gethostbyname()</CODE>) which needs file descriptors and
doesn't complain intelligibly when it can't get them.
</P>
<P>
Each log file requires a file descriptor, which means that if you are
using separate access and error logs for each virtual host, each
virtual host needs two file descriptors. Each
<A HREF="../mod/core.html#listen"><SAMP>Listen</SAMP></A>
directive also needs a file descriptor.
</P>
<P>
Typical values for <<EM>n</EM>> that we've seen are in
the neighborhood of 128 or 250. When the server bumps into the file
descriptor limit, it may dump core with a SIGSEGV, it might just
hang, or it may limp along and you'll see (possibly meaningful) errors
in the error log. One common problem that occurs when you run into
a file descriptor limit is that CGI scripts stop being executed
properly.
</P>
<P>
As to what you can do about this:
</P>
<OL>
<LI>Reduce the number of
<A HREF="../mod/core.html#listen"><SAMP>Listen</SAMP></A>
directives. If there are no other servers running on the machine
on the same port then you normally don't
need any Listen directives at all. By default Apache listens to
all addresses on port 80.
</LI>
<LI>Reduce the number of log files. You can use
<A HREF="../mod/mod_log_config.html"><SAMP>mod_log_config</SAMP></A>
to log all requests to a single log file while including the name
of the virtual host in the log file. You can then write a
script to split the logfile into separate files later if
necessary. Such a script is provided with the Apache 1.3 distribution
in the <SAMP>src/support/split-logfile</SAMP> file.
</LI>
<LI>Increase the number of file descriptors available to the server
(see your system's documentation on the <CODE>limit</CODE> or
<CODE>ulimit</CODE> commands). For some systems, information on
how to do this is available in the
<A HREF="perf.html">performance hints</A> page. There is a specific
note for <A HREF="#freebsd-setsize">FreeBSD</A> below.
</LI>
<LI>"Don't do that" - try to run with fewer virtual hosts
</LI>
<LI>Spread your operation across multiple server processes (using
<A HREF="../mod/core.html#listen"><SAMP>Listen</SAMP></A>
for example, but see the first point) and/or ports.
</LI>
</OL>
<P>
Since this is an operating-system limitation, there's not much else
available in the way of solutions.
</P>
<P>
As of 1.2.1 we have made attempts to work around various limitations
involving running with many descriptors.
<A HREF="descriptors.html">More information is available.</A>
</P>
<HR>
</LI>
<LI><A NAME="freebsd-setsize">
<STRONG>Can I increase <SAMP>FD_SETSIZE</SAMP> on FreeBSD?</STRONG>
</A>
<P>
On versions of FreeBSD before 3.0, the <SAMP>FD_SETSIZE</SAMP> define
defaults to 256. This means that you will have trouble usefully using
more than 256 file descriptors in Apache. This can be increased, but
doing so can be tricky.
</P>
<P>
If you are using a version prior to 2.2, you need to recompile your
kernel with a larger <SAMP>FD_SETSIZE</SAMP>. This can be done by adding a
line such as:
</P>
<DL>
<DD><CODE>options FD_SETSIZE <EM>nnn</EM></CODE>
</DD>
</DL>
<P>
to your kernel config file. Starting at version 2.2, this is no
longer necessary.
</P>
<P>
If you are using a version of 2.1-stable from after 1997/03/10 or
2.2 or 3.0-current from before 1997/06/28, there is a limit in
the resolver library that prevents it from using more file descriptors
than what <SAMP>FD_SETSIZE</SAMP> is set to when libc is compiled. To
increase this, you have to recompile libc with a higher
<SAMP>FD_SETSIZE</SAMP>.
</P>
<P>
In FreeBSD 3.0, the default <SAMP>FD_SETSIZE</SAMP> has been increased to
1024 and the above limitation in the resolver library
has been removed.
</P>
<P>
After you deal with the appropriate changes above, you can increase
the setting of <SAMP>FD_SETSIZE</SAMP> at Apache compilation time
by adding "<SAMP>-DFD_SETSIZE=<EM>nnn</EM></SAMP>" to the
<SAMP>EXTRA_CFLAGS</SAMP> line in your <SAMP>Configuration</SAMP>
file.
</P>
<HR>
</LI>
<LI><A NAME="POSTnotallowed">
<STRONG>Why do I keep getting "Method Not Allowed" for
form POST requests?</STRONG>
</A>
<P>
This is almost always due to Apache not being configured to treat the
file you are trying to POST to as a CGI script. You can not POST
to a normal HTML file; the operation has no meaning. See the FAQ
entry on <A HREF="#CGIoutsideScriptAlias">CGIs outside ScriptAliased
directories</A> for details on how to configure Apache to treat the
file in question as a CGI.
</P>
<HR>
</LI>
<LI><A NAME="passwdauth">
<STRONG>Can I use my <SAMP>/etc/passwd</SAMP> file
for Web page authentication?</STRONG>
</A>
<P>
Yes, you can - but it's a <STRONG>very bad idea</STRONG>. Here are
some of the reasons:
</P>
<UL>
<LI>The Web technology provides no governors on how often or how
rapidly password (authentication failure) retries can be made. That
means that someone can hammer away at your system's
<SAMP>root</SAMP> password using the Web, using a dictionary or
similar mass attack, just as fast as the wire and your server can
handle the requests. Most operating systems these days include
attack detection (such as <EM>n</EM> failed passwords for the same
account within <EM>m</EM> seconds) and evasion (breaking the
connection, disabling the account under attack, disabling
<EM>all</EM> logins from that source, <EM>et cetera</EM>), but the
Web does not.
</LI>
<LI>An account under attack isn't notified (unless the server is
heavily modified); there's no "You have 19483 login
failures" message when the legitimate owner logs in.
</LI>
<LI>Without an exhaustive and error-prone examination of the server
logs, you can't tell whether an account has been compromised.
Detecting that an attack has occurred, or is in progress, is fairly
obvious, though - <EM>if</EM> you look at the logs.
</LI>
<LI>Web authentication passwords (at least for Basic authentication)
generally fly across the wire, and through intermediate proxy
systems, in what amounts to plain text. "O'er the net we
go/Caching all the way;/O what fun it is to surf/Giving my password
away!"
</LI>
<LI>Since HTTP is stateless, information about the authentication is
transmitted <EM>each and every time</EM> a request is made to the
server. Essentially, the client caches it after the first
successful access, and transmits it without asking for all
subsequent requests to the same server.
</LI>
<LI>It's relatively trivial for someone on your system to put up a
page that will steal the cached password from a client's cache
without them knowing. Can you say "password grabber"?
</LI>
</UL>
<P>
If you still want to do this in light of the above disadvantages, the
method is left as an exercise for the reader. It'll void your Apache
warranty, though, and you'll lose all accumulated UNIX guru points.
</P>
<HR>
</LI>
<LI><A NAME="errordoc401">
<STRONG>Why doesn't my <CODE>ErrorDocument 401</CODE> work?</STRONG>
</A>
<P>
You need to use it with a URL in the form
"<SAMP>/foo/bar</SAMP>" and not one with a method and
hostname such as "<SAMP>http://host/foo/bar</SAMP>". See the
<A HREF="../mod/core.html#errordocument"><SAMP>ErrorDocument</SAMP></A>
documentation for details. This was incorrectly documented in the past.
</P>
<HR>
</LI>
<LI><A NAME="errordocssi">
<STRONG>How can I use <CODE>ErrorDocument</CODE>
and SSI to simplify customized error messages?</STRONG>
</A>
<P>
Have a look at <A HREF="custom_errordocs.html">this document</A>.
It shows in example form how you can a combination of XSSI and
negotiation to tailor a set of <CODE>ErrorDocument</CODE>s to your
personal taste, and returning different internationalized error
responses based on the client's native language.
</P>
<HR>
</LI>
<LI><A NAME="setgid">
<STRONG>Why do I get "<SAMP>setgid: Invalid
argument</SAMP>" at startup?</STRONG>
</A>
<P>
Your
<A HREF="../mod/core.html#group"><SAMP>Group</SAMP></A>
directive (probably in <SAMP>conf/httpd.conf</SAMP>) needs to name a
group that actually exists in the <SAMP>/etc/group</SAMP> file (or
your system's equivalent).
</P>
<HR>
</LI>
<LI><A NAME="cookies1">
<STRONG>Why does Apache send a cookie on every response?</STRONG>
</A>
<P>
Apache does <EM>not</EM> send automatically send a cookie on every
response, unless you have re-compiled it with the
<A HREF="../mod/mod_cookies.html"><SAMP>mod_cookies</SAMP></A>
module.
This module was distributed with Apache prior to 1.2.
This module may help track users, and uses cookies to do this. If
you are not using the data generated by <SAMP>mod_cookies</SAMP>, do
not compile it into Apache. Note that in 1.2 this module was renamed
to the more correct name
<A HREF="../mod/mod_usertrack.html"><SAMP>mod_usertrack</SAMP></A>,
and cookies
have to be specifically enabled with the
<A HREF="../mod/mod_usertrack.html#cookietracking"
><SAMP>CookieTracking</SAMP></A>
directive.
</P>
<HR>
</LI>
<LI><A NAME="cookies2">
<STRONG>Why don't my cookies work, I even compiled in
<SAMP>mod_cookies</SAMP>?
</STRONG>
</A>
<P>
Firstly, you do <EM>not</EM> need to compile in
<SAMP>mod_cookies</SAMP> in order for your scripts to work (see the
<A HREF="#cookies1">previous question</A>
for more about <SAMP>mod_cookies</SAMP>). Apache passes on your
<SAMP>Set-Cookie</SAMP> header fine, with or without this module. If
cookies do not work it will be because your script does not work
properly or your browser does not use cookies or is not set-up to
accept them.
</P>
<HR>
</LI>
<LI><A NAME="jdk1-and-http1.1">
<STRONG>Why do my Java app[let]s give me plain text when I request
an URL from an Apache server?</STRONG>
</A>
<P>
As of version 1.2, Apache is an HTTP/1.1 (HyperText Transfer Protocol
version 1.1) server. This fact is reflected in the protocol version
that's included in the response headers sent to a client when
processing a request. Unfortunately, low-level Web access classes
included in the Java Development Kit (JDK) version 1.0.2 expect to see
the version string "HTTP/1.0" and do not correctly interpret
the "HTTP/1.1" value Apache is sending (this part of the
response is a declaration of what the server can do rather than a
declaration of the dialect of the response). The result
is that the JDK methods do not correctly parse the headers, and
include them with the document content by mistake.
</P>
<P>
This is definitely a bug in the JDK 1.0.2 foundation classes from Sun,
and it has been fixed in version 1.1. However, the classes in
question are part of the virtual machine environment, which means
they're part of the Web browser (if Java-enabled) or the Java
environment on the client system - so even if you develop
<EM>your</EM> classes with a recent JDK, the eventual users might
encounter the problem.
The classes involved are replaceable by vendors implementing the
Java virtual machine environment, and so even those that are based
upon the 1.0.2 version may not have this problem.
</P>
<P>
In the meantime, a workaround is to tell
Apache to "fake" an HTTP/1.0 response to requests that come
from the JDK methods; this can be done by including a line such as the
following in your server configuration files:
</P>
<P>
<DL>
<DD><CODE>BrowserMatch Java1.0 force-response-1.0
<BR>
BrowserMatch JDK/1.0 force-response-1.0</CODE>
</DD>
</DL>
</P>
<P>
More information about this issue can be found in the
<A HREF="http://www.apache.org/info/jdk-102.html"
><CITE>Java and HTTP/1.1</CITE></A>
page at the Apache web site.
</P>
<HR>
</LI>
<LI><A NAME="putsupport">
<STRONG>Why can't I publish to my Apache server using PUT on
Netscape Gold and other programs?</STRONG>
</A>
<P>
Because you need to install and configure a script to handle
the uploaded files. This script is often called a "PUT" handler.
There are several available, but they may have security problems.
Using FTP uploads may be easier and more secure, at least for now.
For more information, see the <CITE>Apache Week</CITE> article
<A HREF="http://www.apacheweek.com/features/put"
><CITE>Publishing Pages with PUT</CITE></A>.
</P>
<HR>
</LI>
<LI><A NAME="fastcgi">
<STRONG>Why isn't FastCGI included with Apache any more?</STRONG>
</A>
<P>
The simple answer is that it was becoming too difficult to keep the
version being included with Apache synchronized with the master copy
at the
<A HREF="http://www.fastcgi.com/servers/apache/"
>FastCGI web site</A>. When a new version of Apache was released, the
version of the FastCGI module included with it would soon be out of date.
</P>
<P>
You can still obtain the FastCGI module for Apache from the master
FastCGI web site.
</P>
<HR>
</LI>
<LI><A NAME="nodelay">
<STRONG>Why am I getting "<SAMP>httpd: could not set socket
option TCP_NODELAY</SAMP>" in my error log?</STRONG>
</A>
<P>
This message almost always indicates that the client disconnected
before Apache reached the point of calling <CODE>setsockopt()</CODE>
for the connection. It shouldn't occur for more than about 1% of the
requests your server handles, and it's advisory only in any case.
</P>
<HR>
</LI>
<LI><A NAME="peerreset">
<STRONG>Why am I getting "<SAMP>connection reset by
peer</SAMP>" in my error log?</STRONG>
</A>
<P>
This is a normal message and nothing about which to be alarmed. It simply
means that the client canceled the connection before it had been
completely set up - such as by the end-user pressing the "Stop"
button. People's patience being what it is, sites with response-time
problems or slow network links may experiences this more than
high-capacity ones or those with large pipes to the network.
</P>
<HR>
</LI>
<LI><A NAME="nph-scripts">
<STRONG>How can I get my script's output without Apache buffering
it? Why doesn't my server push work?</STRONG>
</A>
<P>
In order to improve network performance, Apache buffers script output
into relatively large chunks. If you have a script that sends
information in bursts (eg. as partial-done messages in a multi-commit
database transaction or any type of server push), the client will
not necessarily get the output as the script is generating it.
</P>
<P>
To avoid this, Apache recognizes scripts whose names begin with
"<SAMP>nph-</SAMP>" as <EM>non-parsed-header</EM> scripts.
That is, Apache won't buffer their output, but connect it directly to
the socket going back to the client.
</P>
<P>
While this will probably do what you want, there <EM>are</EM> some
disadvantages to it:
</P>
<UL>
<LI><STRONG>YOU</STRONG> (the script) are responsible for generating
<STRONG>ALL</STRONG> of the HTTP headers, and no longer
<EM>just</EM> the "<SAMP>Content-type</SAMP>" or
"<SAMP>Location</SAMP>" headers
</LI>
<LI>Unless your script generates its output carefully, you will see a
performance penalty as excessive numbers of packets go back and forth
</LI>
</UL>
<P>
As an example how you might handle the former (in a Perl script):
</P>
<P>
<DL>
<DD><CODE>if ($0 =~ m:^(.*/)*nph-[^/]*$:) {
<BR>
$HTTP_headers =
"HTTP/1.1 200 OK\015\012";
<BR>
$HTTP_headers .=
"Connection: close\015\012";
<BR>
print $HTTP_headers;
<BR>
}</CODE>
</DD>
</DL>
</P>
<P>
and then follow with your normal non-<SAMP>nph</SAMP> headers.
</P>
<P>Note that in version 1.3, all CGI scripts will be unbuffered
so the only difference between nph scripts and normal scripts is
that nph scripts require the full HTTP headers to be sent.
</P>
<HR>
</LI>
<LI><A NAME="linuxiovec">
<STRONG>Why do I get complaints about redefinition
of "<CODE>struct iovec</CODE>" when
compiling under Linux?</STRONG>
</A>
<P>
This is a conflict between your C library includes and your kernel
includes. You need to make sure that the versions of both are matched
properly. There are two workarounds, either one will solve the problem:
</P>
<P>
<UL>
<LI>Remove the definition of <CODE>struct iovec</CODE> from your C
library includes. It is located in <CODE>/usr/include/sys/uio.h</CODE>.
<STRONG>Or,</STRONG>
</LI>
<LI>Add <CODE>-DNO_WRITEV</CODE> to the <CODE>EXTRA_CFLAGS</CODE>
line in your <SAMP>Configuration</SAMP> and reconfigure/rebuild.
This hurts performance and should only be used as a last resort.
</LI>
</UL>
</P>
<HR>
</LI>
<LI><A NAME="wheres-the-dump">
<STRONG>The errorlog says Apache dumped core, but where's the dump
file?</STRONG>
</A>
<P>
In Apache version 1.2, the error log message
about dumped core includes the directory where the dump file should be
located. However, many Unixes do not allow a process that has
called <CODE>setuid()</CODE> to dump core for security reasons;
the typical Apache setup has the server started as root to bind to
port 80, after which it changes UIDs to a non-privileged user to
serve requests.
</P>
<P>
Dealing with this is extremely operating system-specific, and may
require rebuilding your system kernel. Consult your operating system
documentation or vendor for more information about whether your system
does this and how to bypass it. If there <EM>is</EM> a documented way
of bypassing it, it is recommended that you bypass it only for the
<SAMP>httpd</SAMP> server process if possible.
</P>
<P>
The canonical location for Apache's core-dump files is the
<A HREF="../mod/core.html#serverroot">ServerRoot</A>
directory. As of Apache version 1.3, the location can be set <EM>via</EM>
the
<A HREF="../mod/core.html#coredumpdirectory"
><SAMP>CoreDumpDirectory</SAMP></A>
directive to a different directory. Make sure that this directory is
writable by the user the server runs as (as opposed to the user the server
is <EM>started</EM> as).
</P>
<HR>
</LI>
<LI><A NAME="dnsauth">
<STRONG>Why isn't restricting access by host or domain name
working correctly?</STRONG>
</A>
<P>
Two of the most common causes of this are:
</P>
<OL>
<LI><STRONG>An error, inconsistency, or unexpected mapping in the DNS
registration</STRONG>
<BR>
This happens frequently: your configuration restricts access to
<SAMP>Host.FooBar.Com</SAMP>, but you can't get in from that host.
The usual reason for this is that <SAMP>Host.FooBar.Com</SAMP> is
actually an alias for another name, and when Apache performs the
address-to-name lookup it's getting the <EM>real</EM> name, not
<SAMP>Host.FooBar.Com</SAMP>. You can verify this by checking the
reverse lookup yourself. The easiest way to work around it is to
specify the correct host name in your configuration.
</LI>
<LI><STRONG>Inadequate checking and verification in your
configuration of Apache</STRONG>
<BR>
If you intend to perform access checking and restriction based upon
the client's host or domain name, you really need to configure
Apache to double-check the origin information it's supplied. You do
this by adding the <SAMP>-DMAXIMUM_DNS</SAMP> clause to the
<SAMP>EXTRA_CFLAGS</SAMP> definition in your
<SAMP>Configuration</SAMP> file. For example:
<P>
<DL>
<DD><CODE>EXTRA_CFLAGS=-DMAXIMUM_DNS</CODE>
</DD>
</DL>
</P>
<P>
This will cause Apache to be very paranoid about making sure a
particular host address is <EM>really</EM> assigned to the name it
claims to be. Note that this <EM>can</EM> incur a significant
performance penalty, however, because of all the name resolution
requests being sent to a nameserver.
</P>
</LI>
</OL>
<HR>
</LI>
<LI><A NAME="SSL-i">
<STRONG>Why doesn't Apache include SSL?</STRONG>
</A>
<P>
SSL (Secure Socket Layer) data transport requires encryption, and many
governments have restrictions upon the import, export, and use of
encryption technology. If Apache included SSL in the base package,
its distribution would involve all sorts of legal and bureaucratic
issues, and it would no longer be freely available. Also, some of
the technology required to talk to current clients using SSL is
patented by <A HREF="http://www.rsa.com/">RSA Data Security</A>,
who restricts its use without a license.
</P>
<P>
Some SSL implementations of Apache are available, however; see the
"<A HREF="http://www.apache.org/related_projects.html"
>related projects</A>"
page at the main Apache web site.
</P>
<P>
You can find out more about this topic in the <CITE>Apache Week</CITE>
article about
<A HREF="http://www.apacheweek.com/features/ssl" REL="Help"
><CITE>Apache and Secure Transactions</CITE></A>.
</P>
<HR>
</LI>
<LI><A NAME="HPUX-core">
<STRONG>Why do I get core dumps under HPUX using HP's ANSI
C compiler?</STRONG>
</A>
<P>
We have had numerous reports of Apache dumping core when compiled
with HP's ANSI C compiler using optimization. Disabling the compiler
optimization has fixed these problems.
</P>
<HR>
</LI>
<LI><A NAME="midi">
<STRONG>How do I get Apache to send a MIDI file so the browser can
play it?</STRONG>
</A>
<P>
Even though the registered MIME type for MIDI files is
<SAMP>audio/midi</SAMP>, some browsers are not set up to recognize it
as such; instead, they look for <SAMP>audio/x-midi</SAMP>. There are
two things you can do to address this:
</P>
<OL>
<LI>Configure your browser to treat documents of type
<SAMP>audio/midi</SAMP> correctly. This is the type that Apache
sends by default. This may not be workable, however, if you have
many client installations to change, or if some or many of the
clients are not under your control.
</LI>
<LI>Instruct Apache to send a different <SAMP>Content-type</SAMP>
header for these files by adding the following line to your server's
configuration files:
<P>
<DL>
<DD><CODE>AddType audio/x-midi .mid .midi .kar</CODE>
</DD>
</DL>
</P>
<P>
Note that this may break browsers that <EM>do</EM> recognize the
<SAMP>audio/midi</SAMP> MIME type unless they're prepared to also
handle <SAMP>audio/x-midi</SAMP> the same way.
</P>
</LI>
</OL>
<HR>
</LI>
<LI><A NAME="cantbuild">
<STRONG>Why won't Apache compile with my system's
<SAMP>cc</SAMP>?</STRONG>
</A>
<P>
If the server won't compile on your system, it is probably due to one
of the following causes:
</P>
<UL>
<LI><STRONG>The <SAMP>Configure</SAMP> script doesn't recognize your system
environment.</STRONG>
<BR>
This might be either because it's completely unknown or because
the specific environment (include files, OS version, <EM>et
cetera</EM>) isn't explicitly handled. If this happens, you may
need to port the server to your OS yourself.
</LI>
<LI><STRONG>Your system's C compiler is garbage.</STRONG>
<BR>
Some operating systems include a default C compiler that is either
not ANSI C-compliant or suffers from other deficiencies. The usual
recommendation in cases like this is to acquire, install, and use
<SAMP>gcc</SAMP>.
</LI>
<LI><STRONG>Your <SAMP>include</SAMP> files may be confused.</STRONG>
<BR>
In some cases, we have found that a compiler installation or system
upgrade has left the C header files in an inconsistent state. Make
sure that your include directory tree is in sync with the compiler and
the operating system.
</LI>
<LI><STRONG>Your operating system or compiler may be out of
revision.</STRONG>
<BR>
Software vendors (including those that develop operating systems)
issue new releases for a reason; sometimes to add functionality, but
more often to fix bugs that have been discovered. Try upgrading
your compiler and/or your operating system.
</LI>
</UL>
<P>
The Apache Group tests the ability to build the server on many
different platforms. Unfortunately, we can't test all of the OS
platforms there are. If you have verified that none of the above
issues is the cause of your problem, and it hasn't been reported
before, please submit a
<A HREF="http://www.apache.org/bug_report.html">problem report</A>.
Be sure to include <EM>complete</EM> details, such as the compiler
& OS versions and exact error messages.
</P>
<HR>
</LI>
<LI><A NAME="addlog">
<STRONG>How do I add browsers and referrers to my logs?</STRONG>
</A>
<P>
Apache provides a couple of different ways of doing this. The
recommended method is to compile the
<A HREF="../mod/mod_log_config.html"><SAMP>mod_log_config</SAMP></A>
module into your configuration and use the
<A HREF="../mod/mod_log_config.html#customlog"><SAMP>CustomLog</SAMP></A>
directive.
</P>
<P>
You can either log the additional information in files other than your
normal transfer log, or you can add them to the records already being
written. For example:
</P>
<P>
<CODE>
CustomLog logs/access_log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\""
</CODE>
</P>
<P>
This will add the values of the <SAMP>User-agent:</SAMP> and
<SAMP>Referer:</SAMP> headers, which indicate the client and the
referring page, respectively, to the end of each line in the access
log.
</P>
<P>
You may want to check out the <CITE>Apache Week</CITE> article
entitled:
"<A HREF="http://www.apacheweek.com/features/logfiles" REL="Help"
><CITE>Gathering Visitor Information: Customising Your
Logfiles</CITE></A>".
</P>
<HR>
</LI>
<LI><A NAME="bind8.1">
<STRONG>Why do I get an error about an undefined reference to
"<SAMP>__inet_ntoa</SAMP>" or other
<SAMP>__inet_*</SAMP> symbols?</STRONG>
</A>
<P>
If you have installed <A HREF="http://www.isc.org/bind.html">BIND-8</A>
then this is normally due to a conflict between your include files
and your libraries. BIND-8 installs its include files and libraries
<CODE>/usr/local/include/</CODE> and <CODE>/usr/local/lib/</CODE>, while
the resolver that comes with your system is probably installed in
<CODE>/usr/include/</CODE> and <CODE>/usr/lib/</CODE>. If
your system uses the header files in <CODE>/usr/local/include/</CODE>
before those in <CODE>/usr/include/</CODE> but you do not use the new
resolver library, then the two versions will conflict.
</P>
<P>
To resolve this, you can either make sure you use the include files
and libraries that came with your system or make sure to use the
new include files and libraries. Adding <CODE>-lbind</CODE> to the
<CODE>EXTRA_LDFLAGS</CODE> line in your <SAMP>Configuration</SAMP>
file, then re-running <SAMP>Configure</SAMP>, should resolve the
problem. (Apache versions 1.2.* and earlier use
<CODE>EXTRA_LFLAGS</CODE> instead.)
</P>
<P>
<STRONG>Note:</STRONG>As of BIND 8.1.1, the bind libraries and files are
installed under <SAMP>/usr/local/bind</SAMP> by default, so you
should not run into this problem. Should you want to use the bind
resolvers you'll have to add the following to the respective lines:
</P>
<P>
<DL>
<DD><CODE>EXTRA_CFLAGS=-I/usr/local/bind/include
<BR>
EXTRA_LDFLAGS=-L/usr/local/bind/lib
<BR>
EXTRA_LIBS=-lbind</CODE>
</DD>
</DL>
</P>
<HR>
</LI>
<LI><A NAME="set-servername">
<STRONG>Why does accessing directories only work when I include
the trailing "/"
(<EM>e.g.</EM>, <SAMP>http://foo.domain.com/~user/</SAMP>)
but not when I omit it
(<EM>e.g.</EM>, <SAMP>http://foo.domain.com/~user</SAMP>)?</STRONG>
</A>
<P>
When you access a directory without a trailing "/", Apache needs
to send what is called a redirect to the client to tell it to
add the trailing slash. If it did not do so, relative URLs would
not work properly. When it sends the redirect, it needs to know
the name of the server so that it can include it in the redirect.
There are two ways for Apache to find this out; either it can guess,
or you can tell it. If your DNS is configured correctly, it can
normally guess without any problems. If it is not, however, then
you need to tell it.
</P>
<P>
Add a <A HREF="../mod/core.html#servername">ServerName</A> directive
to the config file to tell it what the domain name of the server is.
</P>
<HR>
</LI>
<LI><A NAME="user-authentication">
<STRONG>How do I set up Apache to require a username and
password to access certain documents?</STRONG>
</A>
<P>
There are several ways to do this; some of the more popular
ones are to use the <A HREF="../mod/mod_auth.html">mod_auth</A>,
<A HREF="../mod/mod_auth_db.html">mod_auth_db</A>, or
<A HREF="../mod/mod_auth_dbm.html">mod_auth_dbm</A> modules.
</P>
<P>
For an explanation on how to implement these restrictions, see
<A HREF="http://www.apacheweek.com/"><CITE>Apache Week</CITE></A>'s
articles on
<A HREF="http://www.apacheweek.com/features/userauth"
><CITE>Using User Authentication</CITE></A>
or
<A HREF="http://www.apacheweek.com/features/dbmauth"
><CITE>DBM User Authentication</CITE></A>.
</P>
<HR>
</LI>
<LI><A NAME="remote-user-var">
<STRONG>Why is the environment variable
<SAMP>REMOTE_USER</SAMP> not set?</STRONG>
</A>
<P>
This variable is set and thus available in SSI or CGI scripts <STRONG>if and
only if</STRONG> the requested document was protected by access
authentication. For an explanation on how to implement these restrictions,
see
<A HREF="http://www.apacheweek.com/"><CITE>Apache Week</CITE></A>'s
articles on
<A HREF="http://www.apacheweek.com/features/userauth"
><CITE>Using User Authentication</CITE></A>
or
<A HREF="http://www.apacheweek.com/features/dbmauth"
><CITE>DBM User Authentication</CITE></A>.
</P>
<P>
Hint: When using a CGI script to receive the data of a HTML <SAMP>FORM</SAMP>
notice that protecting the document containing the <SAMP>FORM</SAMP> is not
sufficient to provide <SAMP>REMOTE_USER</SAMP> to the CGI script. You have
to protect the CGI script, too. Or alternatively only the CGI script (then
authentication happens only after filling out the form).
</P>
<HR>
</LI>
<LI><A NAME="remote-auth-only">
<STRONG>How do I set up Apache to allow access to certain
documents only if a site is either a local site <EM>or</EM>
the user supplies a password and username?</STRONG>
</A>
<P>
Use the <A HREF="../mod/core.html#satisfy">Satisfy</A> directive,
in particular the <CODE>Satisfy Any</CODE> directive, to require
that only one of the access restrictions be met. For example,
adding the following configuration to a <SAMP>.htaccess</SAMP>
or server configuration file would restrict access to people who
either are accessing the site from a host under domain.com or
who can supply a valid username and password:
</P>
<P>
<DL>
<DD><CODE>deny from all
<BR>
allow from .domain.com
<BR>
AuthType Basic
<BR>
AuthUserFile /usr/local/apache/conf/htpasswd.users
<BR>
AuthName special directory
<BR>
require valid-user
<BR>
satisfy any</CODE>
</DD>
</DL>
</P>
<P>
See the <A HREF="#user-authentication">user authentication</A>
question and the <A HREF="../mod/mod_access.html">mod_access</A>
module for details on how the above directives work.
</P>
<HR>
</LI>
<LI><A NAME="no-info-directives">
<STRONG>Why doesn't mod_info list any directives?</STRONG>
</A>
<P>
The <A HREF="../mod/mod_info.html"><SAMP>mod_info</SAMP></A>
module allows you to use a Web browser to see how your server is
configured. Among the information it displays is the list modules and
their configuration directives. The "current" values for
the directives are not necessarily those of the running server; they
are extracted from the configuration files themselves at the time of
the request. If the files have been changed since the server was last
reloaded, the display will will not match the values actively in use.
If the files and the path to the files are not readable by the user as
which the server is running (see the
<A HREF="../mod/core.html#user"><SAMP>User</SAMP></A>
directive), then <SAMP>mod_info</SAMP> cannot read them in order to
list their values. An entry <EM>will</EM> be made in the error log in
this event, however.
</P>
<HR>
</LI>
<LI><A NAME="linux-shmget">
<STRONG>When I run it under Linux I get "shmget:
function not found", what should I do?</STRONG>
</A>
<P>
Your kernel has been built without SysV IPC support. You will have to
rebuild the kernel with that support enabled (it's under the
"General Setup" submenu). Documentation for
kernel building is beyond the scope of this FAQ; you should consult
the
<A HREF="http://www.linuxhq.com/HOWTO/Kernel-HOWTO.html"
>Kernel HOWTO</A>,
or the documentation provided with your distribution, or a
<A HREF="http://www.linuxhq.com/HOWTO/META-FAQ.html"
>Linux newsgroup/mailing list</A>.
As a last-resort workaround, you can
comment out the <CODE>#define USE_SHMGET_SCOREBOARD</CODE>
definition in the
<SAMP>LINUX</SAMP> section of
<SAMP>src/conf.h</SAMP> and rebuild the server (prior to 1.3b4, simply
removing <CODE>#define HAVE_SHMGET</CODE> would have sufficed).
This will produce a server which is slower and less reliable.
</P>
<HR>
</LI>
<LI><A NAME="authauthoritative">
<STRONG>Why does my authentication give me a server error?</STRONG>
</A>
<P>
Under normal circumstances, the Apache access control modules will
pass unrecognized user IDs on to the next access control module in
line. Only if the user ID is recognized and the password is validated
(or not) will it give the usual success or "authentication
failed" messages.
</P>
<P>
However, if the last access module in line 'declines' the validation
request (because it has never heard of the user ID or because it is not
configured), the <SAMP>http_request</SAMP> handler will give one of
the following, confusing, errors:
</P>
<UL>
<LI><SAMP>check access</SAMP>
</LI>
<LI><SAMP>check user. No user file?</SAMP>
</LI>
<LI><SAMP>check access. No groups file?</SAMP>
</LI>
</UL>
<P>
This does <EM>not</EM> mean that you have to add an
'<SAMP>AuthUserFile /dev/null</SAMP>' line as some magazines suggest!
</P>
<P>
The solution is to ensure that at least the last module is authoritative
and <STRONG>CONFIGURED</STRONG>. By default, <SAMP>mod_auth</SAMP> is
authoritative and will give an OK/Denied, but only if it is configured
with the proper <SAMP>AuthUserFile</SAMP>. Likewise, if a valid group
is required. (Remember that the modules are processed in the reverse
order from that in which they appear in your compile-time
<SAMP>Configuration</SAMP> file.)
</P>
<P>
A typical situation for this error is when you are using the
<SAMP>mod_auth_dbm</SAMP>, <SAMP>mod_auth_msql</SAMP>,
<SAMP>mod_auth_mysql</SAMP>, <SAMP>mod_auth_anon</SAMP> or
<SAMP>mod_auth_cookie</SAMP> modules on their own. These are by
default <STRONG>not</STRONG> authoritative, and this will pass the
buck on to the (non-existent) next authentication module when the
user ID is not in their respective database. Just add the appropriate
'<SAMP><EM>XXX</EM>Authoritative yes</SAMP>' line to the configuration.
</P>
<P>
In general it is a good idea (though not terribly efficient) to have the
file-based <SAMP>mod_auth</SAMP> a module of last resort. This allows
you to access the web server with a few special passwords even if the
databases are down or corrupted. This does cost a
file open/seek/close for each request in a protected area.
</P>
<HR>
</LI>
<LI><A NAME="auth-on-same-machine">
<STRONG>Do I have to keep the (mSQL) authentication information
on the same machine?</STRONG>
</A>
<P>
Some organizations feel very strongly about keeping the authentication
information on a different machine than the webserver. With the
<SAMP>mod_auth_msql</SAMP>, <SAMP>mod_auth_mysql</SAMP>, and other SQL
modules connecting to (R)DBMses this is quite possible. Just configure
an explicit host to contact.
</P>
<P>
Be aware that with mSQL and Oracle, opening and closing these database
connections is very expensive and time consuming. You might want to
look at the code in the <SAMP>auth_*</SAMP> modules and play with the
compile time flags to alleviate this somewhat, if your RDBMS licences
allow for it.
</P>
<HR>
</LI>
<LI><A NAME="msql-slow">
<STRONG>Why is my mSQL authentication terribly slow?</STRONG>
</A>
<P>
You have probably configured the Host by specifying a FQHN,
and thus the <SAMP>libmsql</SAMP> will use a full blown TCP/IP socket
to talk to the database, rather than a fast internal device. The
<SAMP>libmsql</SAMP>, the mSQL FAQ, and the <SAMP>mod_auth_msql</SAMP>
documentation warn you about this. If you have to use different
hosts, check out the <SAMP>mod_auth_msql</SAMP> code for
some compile time flags which might - or might not - suit you.
</P>
<HR>
</LI>
<LI><A NAME="rewrite-more-config">
<STRONG>Where can I find mod_rewrite rulesets which already solve
particular URL-related problems?</STRONG>
</A>
<P>
There is a collection of
<A HREF="http://www.engelschall.com/pw/apache/rewriteguide/"
>Practical Solutions for URL-Manipulation</A>
where you can
find all typical solutions the author of
<A HREF="../mod/mod_rewrite.html"><SAMP>mod_rewrite</SAMP></A>
currently knows of. If you have more
interesting rulesets which solve particular problems not currently covered in
this document, send it to
<A HREF="mailto:rse@apache.org">Ralf S. Engelschall</A>
for inclusion. The
other webmasters will thank you for avoiding the reinvention of the wheel.
</P>
<HR>
</LI>
<LI><A NAME="rewrite-article">
<STRONG>Where can I find any published information about
URL-manipulations and mod_rewrite?</STRONG>
</A>
<P>
There is an article from
<A HREF="mailto:rse@apache.org"
>Ralf S. Engelschall</A>
about URL-manipulations based on
<A HREF="../mod/mod_rewrite.html"><SAMP>mod_rewrite</SAMP></A>
in the "iX Multiuser Multitasking Magazin" issue #12/96. The
german (original) version
can be read online at
<<A HREF="http://www.heise.de/ix/artikel/9612149/"
>http://www.heise.de/ix/artikel/9612149/</A>>,
the English (translated) version can be found at
<<A HREF="http://www.heise.de/ix/artikel/E/9612149/"
>http://www.heise.de/ix/artikel/E/9612149/</A>>.
</P>
<HR>
</LI>
<LI><A NAME="rewrite-complexity">
<STRONG>Why is mod_rewrite so difficult to learn and seems so
complicated?</STRONG>
</A>
<P>
Hmmm... there are a lot of reasons. First, mod_rewrite itself is a powerful
module which can help you in really <STRONG>all</STRONG> aspects of URL
rewriting, so it can be no trivial module per definition. To accomplish
its hard job it uses software leverage and makes use of a powerful regular
expression
library by Henry Spencer which is an integral part of Apache since its
version 1.2. And regular expressions itself can be difficult to newbies,
while providing the most flexible power to the advanced hacker.
</P>
<P>
On the other hand mod_rewrite has to work inside the Apache API environment
and needs to do some tricks to fit there. For instance the Apache API as of
1.x really was not designed for URL rewriting at the <TT>.htaccess</TT>
level of processing. Or the problem of multiple rewrites in sequence, which
is also not handled by the API per design. To provide this features
mod_rewrite has to do some special (but API compliant!) handling which leads
to difficult processing inside the Apache kernel. While the user usually
doesn't see anything of this processing, it can be difficult to find
problems when some of your RewriteRules seem not to work.
</P>
<HR>
</LI>
<LI><A NAME="rewrite-dontwork">
<STRONG>What can I do if my RewriteRules don't work as expected?
</STRONG>
</A>
<P>
Use "<SAMP>RewriteLog somefile</SAMP>" and
"<SAMP>RewriteLogLevel 9</SAMP>" and have a precise look at the
steps the rewriting engine performs. This is really the only one and best
way to debug your rewriting configuration.
</P>
<HR>
</LI>
<LI><A NAME="rewrite-prefixdocroot"><STRONG>Why don't some of my URLs
get prefixed with DocumentRoot when using mod_rewrite?</STRONG>
</A>
<P>
If the rule starts with <SAMP>/somedir/...</SAMP> make sure that really no
<SAMP>/somedir</SAMP> exists on the filesystem if you don't want to lead the
URL to match this directory, i.e. there must be no root directory named
<SAMP>somedir</SAMP> on the filesystem. Because if there is such a
directory, the URL will not get prefixed with DocumentRoot. This behaviour
looks ugly, but is really important for some other aspects of URL
rewriting.
</P>
<HR>
</LI>
<LI><A NAME="rewrite-nocase">
<STRONG>How can I make all my URLs case-insensitive with mod_rewrite?
</STRONG>
</A>
<P>
You can't! The reason is: First, case translations for arbitrary length URLs
cannot be done <EM>via</EM> regex patterns and corresponding substitutions.
One need
a per-character pattern like sed/Perl <SAMP>tr|..|..|</SAMP> feature.
Second, just
making URLs always upper or lower case will not resolve the complete problem
of case-INSENSITIVE URLs, because actually the URLs had to be rewritten to
the correct case-variant residing on the filesystem because in later
processing Apache needs to access the file. And Unix filesystem is always
case-SENSITIVE.
</P>
<P>
But there is a module named <CODE>mod_speling.c</CODE> (yes, it is named
this way!) out there on the net. Try this one.
</P>
<HR>
</LI>
<LI><A NAME="rewrite-virthost">
<STRONG> Why are RewriteRules in my VirtualHost parts ignored?</STRONG>
</A>
<P>
Because you have to enable the engine for every virtual host explicitly due
to security concerns. Just add a "RewriteEngine on" to your
virtual host configuration parts.
</P>
<HR>
</LI>
<LI><A NAME="rewrite-envwhitespace">
<STRONG> How can I use strings with whitespaces in RewriteRule's ENV
flag?</STRONG>
</A>
<P>
There is only one ugly solution: You have to surround the complete flag
argument by quotation marks (<SAMP>"[E=...]"</SAMP>). Notice: The argument
to quote here is not the argument to the E-flag, it is the argument of the
Apache config file parser, i.e. the third argument of the RewriteRule here.
So you have to write <SAMP>"[E=any text with whitespaces]"</SAMP>.
</P>
<HR>
</LI>
<LI><A NAME="cgi-spec">
<STRONG>Where can I find the "CGI specification"?</STRONG>
</A>
<P>
The Common Gateway Interface (CGI) specification can be found at
the original NCSA site
<<A HREF="http://hoohoo.ncsa.uiuc.edu/cgi/interface.html">
<SAMP>http://hoohoo.ncsa.uiuc.edu/cgi/interface.html</SAMP></A>>.
This version hasn't been updated since 1995, and there have been
some efforts to update it.
</P>
<P>
A new draft is being worked on with the intent of making it an informational
RFC; you can find out more about this project at
<<A HREF="http://web.golux.com/coar/cgi/"
><SAMP>http://web.golux.com/coar/cgi/</SAMP></A>>.
</P>
<HR>
</LI>
<LI><A NAME="year2000">
<STRONG>Is Apache Year 2000 compliant?</STRONG>
</A>
<P>
Yes, Apache is Year 2000 compliant.
</P>
<P>
Apache internally never stores years as two digits.
On the HTTP protocol level RFC1123-style addresses are generated
which is the only format a HTTP/1.1-compliant server should
generate. To be compatible with older applications Apache
recognizes ANSI C's <CODE>asctime()</CODE> and
RFC850-/RFC1036-style date formats, too.
The <CODE>asctime()</CODE> format uses four-digit years,
but the RFC850 and RFC1036 date formats only define a two-digit year.
If Apache sees such a date with a value less than 70 it assumes that
the century is <SAMP>20</SAMP> rather than <SAMP>19</SAMP>.
</P>
<P>
Some aspects of Apache's output may use two-digit years, such as the
automatic listing of directory contents provided by
<A HREF="../mod/mod_autoindex.html"><SAMP>mod_autoindex</SAMP></A>
with the
<A HREF="../mod/mod_autoindex.html#indexoptions"
><SAMP>FancyIndexing</SAMP></A>
option enabled, but it is improper to depend upon such displays for
specific syntax. And even that issue is being addressed by the
developers; a future version of Apache should allow you to format that
display as you like.
</P>
<P>
Although Apache is Year 2000 compliant, you may still get problems
if the underlying OS has problems with dates past year 2000
(<EM>e.g.</EM>, OS calls which accept or return year numbers).
Most (UNIX) systems store dates internally as signed 32-bit integers
which contain the number of seconds since 1<SUP>st</SUP> January 1970, so
the magic boundary to worry about is the year 2038 and not 2000.
But modern operating systems shouldn't cause any trouble
at all.
</P>
<HR>
</LI>
<LI><A NAME="namevhost">
<STRONG>I upgraded to Apache 1.3b and now my virtual hosts don't
work!</STRONG>
</A>
<P>
In versions of Apache prior to 1.3b2, there was a lot of confusion
regarding address-based virtual hosts and (HTTP/1.1) name-based
virtual hosts, and the rules concerning how the server processed
<SAMP><VirtualHost></SAMP> definitions were very complex and not
well documented.
</P>
<P>
Apache 1.3b2 introduced a new directive,
<A HREF="http://www.apache.org/docs/mod/core.html#namevirtualhost"
><SAMP>NameVirtualHost</SAMP></A>,
which simplifies the rules quite a bit. However, changing the rules
like this means that your existing name-based
<SAMP><VirtualHost></SAMP> containers probably won't work
correctly immediately following the upgrade.
</P>
<P>
To correct this problem, add the following line to the beginning of
your server configuration file, before defining any virtual hosts:
</P>
<DL>
<DD><CODE>NameVirtualHost <EM>n.n.n.n</EM></CODE>
</DD>
</DL>
<P>
Replace the "<SAMP>n.n.n.n</SAMP>" with the IP address to
which the name-based virtual host names resolve; if you have multiple
name-based hosts on multiple addresses, repeat the directive for each
address.
</P>
<P>
Make sure that your name-based <SAMP><VirtualHost></SAMP> blocks
contain <SAMP>ServerName</SAMP> and possibly <SAMP>ServerAlias</SAMP>
directives so Apache can be sure to tell them apart correctly.
</P>
<P>
Please see the
<A HREF="http://www.apache.org/docs/vhosts/">Apache
Virtual Host documentation</A> for further details about configuration.
</P>
<HR>
</LI>
<LI><A NAME="redhat">
<STRONG>I'm using RedHat Linux and I have problems with httpd
dying randomly or not restarting properly</STRONG>
</A>
<P>
RedHat Linux versions 4.x (and possibly earlier) RPMs contain
various nasty scripts which do not stop or restart Apache properly.
These can affect you even if you're not running the RedHat supplied
RPMs.
</P>
<P>
If you're using the default install then you're probably running
Apache 1.1.3, which is outdated. From RedHat's ftp site you can
pick up a more recent RPM for Apache 1.2.x. This will solve one of
the problems.
</P>
<P>
If you're using a custom built Apache rather than the RedHat RPMs
then you should <CODE>rpm -e apache</CODE>. In particular you want
the mildly broken <CODE>/etc/logrotate.d/apache</CODE> script to be
removed, and you want the broken <CODE>/etc/rc.d/init.d/httpd</CODE>
(or <CODE>httpd.init</CODE>) script to be removed. The latter is
actually fixed by the apache-1.2.5 RPMs but if you're building your
own Apache then you probably don't want the RedHat files.
</P>
<P>
We can't stress enough how important it is for folks, <EM>especially
vendors</EM> to follow the <A HREF="../stopping.html">stopping Apache
directions</A> given in our documentation. In RedHat's defense,
the broken scripts were necessary with Apache 1.1.x because the
Linux support in 1.1.x was very poor, and there were various race
conditions on all platforms. None of this should be necessary with
Apache 1.2 and later.
</P>
<HR>
</LI>
<LI><A NAME="stopping">
<STRONG>I upgraded from an Apache version earlier
than 1.2.0 and suddenly I have problems with Apache dying randomly
or not restarting properly</STRONG>
</A>
<P>
You should read <A HREF="#redhat">the previous note</A> about
problems with RedHat installations. It is entirely likely that your
installation has start/stop/restart scripts which were built for
an earlier version of Apache. Versions earlier than 1.2.0 had
various race conditions that made it necessary to use
<CODE>kill -9</CODE> at times to take out all the httpd servers.
But that should not be necessary any longer. You should follow
the <A HREF="../stopping.html">directions on how to stop
and restart Apache</A>.
</P>
<P>As of Apache 1.3 there is a script
<CODE>src/support/apachectl</CODE> which, after a bit of
customization, is suitable for starting, stopping, and restarting
your server.
</P>
<HR>
</LI>
<LI><A NAME="redhat-htm">
<STRONG>I'm using RedHat Linux and my .htm files are showing
up as HTML source rather than being formatted!</STRONG>
</A>
<P>
RedHat messed up and forgot to put a content type for <CODE>.htm</CODE>
files into <CODE>/etc/mime.types</CODE>. Edit <CODE>/etc/mime.types</CODE>,
find the line containing <CODE>html</CODE> and add <CODE>htm</CODE> to it.
Then restart your httpd server:
</P>
<DL>
<DD><CODE>kill -HUP `cat /var/run/httpd.pid`</CODE>
</DD>
</DL>
<P>
Then <STRONG>clear your browsers' caches</STRONG>. (Many browsers won't
re-examine the content type after they've reloaded a page.)
</P>
<HR>
</LI>
<LI><A NAME="glibc-crypt">
<STRONG>I'm using RedHat Linux 5.0, or some other
<SAMP>glibc</SAMP>-based Linux system, and I get errors with the
<CODE>crypt</CODE> function when I attempt to build Apache 1.2.</STRONG>
</A>
<P>
<SAMP>glibc</SAMP> puts the <CODE>crypt</CODE> function into a separate
library. Edit your <CODE>src/Configuration</CODE> file and set this:
</P>
<DL>
<DD><CODE>EXTRA_LIBS=-lcrypt</CODE>
</DD>
</DL>
<P>
Then re-run <SAMP>src/Configure</SAMP> and re-execute the make.
</P>
<HR>
</LI>
<LI><A NAME="nfslocking">
<STRONG>Server hangs, or fails to start, and/or error log
fills with "<SAMP>fcntl: F_SETLKW: No record locks
available</SAMP>" or similar messages</STRONG>
</A>
<P>
These are symptoms of a fine locking problem, which usually means that
the server is trying to use a synchronization file on an NFS filesystem.
</P>
<P>
Because of its parallel-operation model, the Apache Web server needs to
provide some form of synchronization when accessing certain resources.
One of these synchronization methods involves taking out locks on a file,
which means that the filesystem whereon the lockfile resides must support
locking. In many cases this means it <EM>can't</EM> be kept on an
NFS-mounted filesystem.
</P>
<P>
To cause the Web server to work around the NFS locking limitations, include
a line such as the following in your server configuration files:
</P>
<DL>
<DD><CODE>LockFile /var/run/apache-lock</CODE>
</DD>
</DL>
<P>
The directory should not be generally writable (<EM>e.g.</EM>, don't use
<SAMP>/var/tmp</SAMP>).
See the <A HREF="../mod/core.html#lockfile"><SAMP>LockFile</SAMP></A>
documentation for more information.
</P>
<HR>
</LI>
<LI><A NAME="zoom">
<STRONG>What's the best hardware/operating system/... How do
I get the most out of my Apache Web server?</STRONG>
</A>
<P>
Check out Dean Gaudet's
<A HREF="http://www.apache.org/docs/misc/perf-tuning.html"
>performance tuning page</A>.
</P>
<HR>
</LI>
<LI><A NAME="regex">
<STRONG>What are "regular expressions"?</STRONG></A>
<P>
Regular expressions are a way of describing a pattern - for example, "all the words
that begin with the letter A" or "every 10-digit phone number" or even "Every sentence
with two commas in it, and no capital letter Q". Regular expressions (aka "regexp"s)
are useful in Apache because they let you apply certain attributes against collections
of files or resources in very flexible ways - for example, all .gif and .jpg files under
any "images" directory could be written as /.*\/images\/.*[jpg|gif]/.
<P>The best overview around is probably the one which comes with
Perl. We implement a simple subset of Perl's regexp support, but
it's still a good way to learn what they mean. You can start by
going to the <A
HREF="http://www.perl.com/CPAN-local/doc/manual/html/pod/perlre.html#Version_8_Regular_Expresions">CPAN
page on regular expressions</A>, and branching out from there.
<HR>
</LI>
<li><a name="broken-gcc"><strong>I'm using gcc and I get some
compilation errors, what is wrong?</strong></a>
<p>
GCC parses your system header files and produces a modified subset which
it uses for compiling. This behaviour ties GCC tightly to the version
of your operating system. So, for example, if you were running IRIX 5.3
when you built GCC and then upgrade to IRIX 6.2 later, you will have to
rebuild GCC. Similarly for Solaris 2.4, 2.5, or 2.5.1 when you upgrade
to 2.6. Sometimes you can type "gcc -v" and it will tell you the version
of the operating system it was built against.
<p>
If you fail to do this, then it is very likely that Apache will fail
to build. One of the most common errors is with <code>readv</code>,
<code>writev</code>, or <code>uio.h</code>. This is <b>not</b> a
bug with Apache. You will need to re-install GCC.
<hr>
</li>
<!-- Don't forget to add HR tags at the end of each list item.. -->
</OL>
<HR>
<H3 ALIGN="CENTER">
Apache HTTP Server Version 1.3
</H3>
<A HREF="./"><IMG SRC="../images/index.gif" ALT="Index"></A>
<A HREF="../"><IMG SRC="../images/home.gif" ALT="Home"></A>
</BODY>
</HTML>
|