title: configure apache to be tested on local server
body: <p>How do I configure apache where I can test it on a local server without a DNS? I tried the below but I'm not sure what is wrong with it.</p>
  
  <p>I'm using Centos.</p>
  
  <p>Here is what I did</p>
  
  <ol>
  <li><p>Get IP address with |ip addr show|</p></li>
  <li><p>to etc/hosts I added |92.168.169.128 tst01|.  I got the ip from #1</p></li>
  <li><p>restarted apache |apachectl -k graceful|</p></li>
  </ol>
  
  <p>In a web browser if I go to <code>http://tst01/</code> I get the default Apache page.</p>
  
  <p>Here is my httpd.conf</p>
  
  <pre><code>ServerRoot "/etc/apache2"
  PidFile ${APACHE_PID_FILE}
  User ${APACHE_RUN_USER}
  Group ${APACHE_RUN_GROUP}
  ServerTokens ProductOnly
  ServerAdmin asdf@example.com
  
  &lt;VirtualHost *:80&gt;
    ServerName tst01
    DocumentRoot /tmp/public_html
  
    LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
    ErrorLog /tmp/apache_logs/error.log
    CustomLog /tmp/apache_logs/access.log combined    
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I put a very simple index file at: /tmp/public_html/index.html.  </p>
  
  <p>The permissions for /tmp/public_html is 755</p>
  
  <p>I can see my index file if I put this in a browser:file:///tmp/public_html/index.html</p>
  
  <p>If I look in /tmp/apache_logs I don't have any logs.  I even tried to open the permissions to 777</p>
  
  <p>Any suggestions on getting my index.html to show up instead the default apache page?</p>