Help With Server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help With Server

    hello i am running my own server with wamp and get the following problem i want to host multiple domains on it but always when i try to make it the domain leads to the same folder as my main address does any one know how i can fix that error?

    PHP Code:
    foreach ($_SERVER as $server => $value)
    {
    echo 
    "$server is $value<br />";


    #2
    need to add something like this in your httpd.conf or whatever your server conf file is

    Code:
    DocumentRoot c:\path\to\dir
    ServerName site name goes here
    <Directory "c:\path\to\dir">
    allow from all
    Options -Indexes
    </Directory>
    change it so it matches your server

    Comment


      #3
      hmmm okay will try thanx

      PHP Code:
      foreach ($_SERVER as $server => $value)
      {
      echo 
      "$server is $value<br />";

      Comment


        #4
        Hmmm still not working

        PHP Code:
        foreach ($_SERVER as $server => $value)
        {
        echo 
        "$server is $value<br />";

        Comment


          #5
          ok think its working now can anyone test this link http://myserver23.zapto.org today at 8 pm uk time please and tell me what you see?

          PHP Code:
          foreach ($_SERVER as $server => $value)
          {
          echo 
          "$server is $value<br />";

          Comment


            #6
            btw whenever you make changed to the server conf files you need to restart apache in order for any changed to be made
            plus you should have an emample conf fille or at least an example virtual server like i gave above

            Comment


              #7
              btw whenever you make changed to the server conf files you need to restart apache in order for any changed to be made
              plus you should have an emample conf fille or at least an example virtual server like i gave above[/b]
              Have it woorking now i just need to figure out how to change my dynamic ip to static ip

              PHP Code:
              foreach ($_SERVER as $server => $value)
              {
              echo 
              "$server is $value<br />";

              Comment


                #8
                need to contact your isp

                Comment


                  #9
                  lol okay because i think no-ip.com is to expensive

                  PHP Code:
                  foreach ($_SERVER as $server => $value)
                  {
                  echo 
                  "$server is $value<br />";

                  Comment


                    #10
                    grrr my isp doesnt gives static ip does anyone know something cheaper then no-ip?

                    PHP Code:
                    foreach ($_SERVER as $server => $value)
                    {
                    echo 
                    "$server is $value<br />";

                    Comment

                    Working...
                    X