Apache Newbie

Alles, was den Apache betrifft, kann hier besprochen werden.

Apache Newbie

Postby KatoneVi » 11. October 2014 23:41

Hello everyone,

I'm kind of new to this whole apache thing. I'm sure someone knows what I am going through with the current issue that I am facing.

Currently, I am upgrading the apache for my server from 2.2 to 2.4. Everything seems to be fine and dandy... but when I attempt to log onto the webpage, the page display the following example below. I have no clue why, so any assistance would be appreciated! Thanks!

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   <head>
      <title>Test Page for the Apache HTTP Server on Red Hat Enterprise Linux</title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <style type="text/css">
         /*<![CDATA[*/
         body {
            background-color: #fff;
            color: #000;
            font-size: 0.9em;
            font-family: sans-serif,helvetica;
            margin: 0;
            padding: 0;
         }
         :link {
            color: #c00;
         }
         :visited {
            color: #c00;
         }
         a:hover {
            color: #f50;
         }
         h1 {
            text-align: center;
            margin: 0;
            padding: 0.6em 2em 0.4em;
            background-color: #900;
            color: #fff;
            font-weight: normal;
            font-size: 1.75em;
            border-bottom: 2px solid #000;
         }
         h1 strong {
            font-weight: bold;
         }
         h2 {
            font-size: 1.1em;
            font-weight: bold;
         }
         hr {
            display: none;
         }
         .content {
            padding: 1em 5em;
         }
         .content-columns {
            /* Setting relative positioning allows for
            absolute positioning for sub-classes */
            position: relative;
            padding-top: 1em;
         }
         .content-column-left {
            /* Value for IE/Win; will be overwritten for other browsers */
            width: 47%;
            padding-right: 3%;
            float: left;
            padding-bottom: 2em;
         }
         .content-column-left hr {
            display: none;
         }
         .content-column-right {
            /* Values for IE/Win; will be overwritten for other browsers */
            width: 47%;
            padding-left: 3%;
            float: left;
            padding-bottom: 2em;
         }
         .content-columns>.content-column-left, .content-columns>.content-column-right {
            /* Non-IE/Win */
         }
         img {
            border: 2px solid #fff;
            padding: 2px;
            margin: 2px;
         }
         a:hover img {
            border: 2px solid #f50;
         }
         /*]]>*/
      </style>
   </head>

   <body>
      <h1>Red Hat Enterprise Linux <strong>Test Page</strong></h1>

      <div class="content">
         <div class="content-middle">
            <p>This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the Apache HTTP server installed at this site is working properly.</p>
         </div>
         <hr />

         <div class="content-columns">
            <div class="content-column-left">
               <h2>If you are a member of the general public:</h2>

               <p>The fact that you are seeing this page indicates that the website you just visited is either experiencing problems, or is undergoing routine maintenance.</p>

               <p>If you would like to let the administrators of this website know that you've seen this page instead of the page you expected, you should send them e-mail. In general, mail sent to the name "webmaster" and directed to the website's domain should reach the appropriate person.</p>

               <p>For example, if you experienced problems while visiting www.example.com, you should send e-mail to "webmaster@example.com".</p>

               <p>For information on Red Hat Enterprise Linux, please visit the <a href="http://www.redhat.com/">Red Hat, Inc. website</a>. The documentation for Red Hat Enterprise Linux is <a href="http://www.redhat.com/docs/manuals/enterprise/">available on the Red Hat, Inc. website</a>.</p>
               <hr />
            </div>

            <div class="content-column-right">
               <h2>If you are the website administrator:</h2>

               <p>You may now add content to the directory <tt>/var/www/html/</tt>. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file <tt>/etc/httpd/conf.d/welcome.conf</tt>.</p>

                                        <p>You are free to use the image below on web sites powered by the Apache HTTP Server:</p>
               
                                        <p align="center"><a href="http://httpd.apache.org/"><img src="/icons/apache_pb2.gif" alt="[ Powered by Apache ]"/></a></p>

            </div>
         </div>
      </div>
   </body>
</html>
KatoneVi
 
Posts: 3
Joined: 11. October 2014 23:37
Operating System: Windows

Re: Apache Newbie

Postby Nobbie » 12. October 2014 10:30

Did you backup your html ot htdocs folder? Obviously you overwrote the existing website with the Apache upgrade.

P.S.: Did you read that page? Here is a full explanation (you find it on the right side):

If you are the website administrator:

You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.

You are free to use the image below on web sites powered by the Apache HTTP Server:
Nobbie
 
Posts: 8759
Joined: 09. March 2008 13:04

Re: Apache Newbie

Postby KatoneVi » 12. October 2014 19:33

Of course I backed it up. However... in my former Apache Web page, that directory was also empty. All my contents are in another directory. Perhaps I must re route? If so... which file do I modify to do this? I Google it but having problems finding the answer. My guess was httpd.conf
KatoneVi
 
Posts: 3
Joined: 11. October 2014 23:37
Operating System: Windows

Re: Apache Newbie

Postby KatoneVi » 12. October 2014 22:57

Okay I got it... I forgot to update my wsgi file. The error log said it was denying the client. Thanks!
KatoneVi
 
Posts: 3
Joined: 11. October 2014 23:37
Operating System: Windows


Return to Apache

Who is online

Users browsing this forum: No registered users and 2 guests