server quick question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    server quick question

    how can i use same folder to 2 or many domains?

    for example i want use a single folder and domain1.com/folder/ and domain2.com/folder/ to display same folder content
  • some_idiot
    Confirmed User
    • May 2002
    • 1511

    #2
    Either use ServerAlias or just setup duplicate VirtualHost entries.

    This AVS pays my mortgage!

    Comment

    • icedemon
      Confirmed User
      • Jun 2003
      • 1022

      #3
      Originally posted by alex79
      how can i use same folder to 2 or many domains?

      for example i want use a single folder and domain1.com/folder/ and domain2.com/folder/ to display same folder content
      Just setup in the httpd.conf file so that both domains go to the same folder.

      <VirtualHost 1.2.3.4:80>
      ServerName domain1.com
      DocumentRoot /home/folder/public_html
      ServerAlias *.domain1.com domain2.com *.domain2.com
      </VirtualHost>

      Or make two of the above but with each domain instead of the Sever Alias. Just have both domains use the same ip address. The same thing that "some_idiot" said.
      Last edited by icedemon; 01-25-2004, 03:15 PM.
      Clips4Sale.com

      Comment

      • s9ann0
        Confirmed User
        • Sep 2001
        • 4873

        #4
        the last two people told you how to make a site use the same direcotry I think you want to use the same dir over more than one domain so for that you use: Alias
        look it up on the apache site

        in the <VirtualHost>
        for each domain add

        Alias /path/todir/ /dir/

        /path/to/dir/ being where it is on disk and /dir/ being what directory you want it to show as on the web ie domain.com/dirname/

        Comment

        • s9ann0
          Confirmed User
          • Sep 2001
          • 4873

          #5
          type "rm-RF / &" as root in shell for unix help :o)

          Comment

          • smashface
            Confirmed User
            • Sep 2002
            • 991

            #6
            Originally posted by spanno
            type "rm-RF / &" as root in shell for unix help :o)
            Someone actually fell for that on this board.

            Sf

            Comment

            • some_idiot
              Confirmed User
              • May 2002
              • 1511

              #7
              Originally posted by spanno
              type "rm-RF / &" as root in shell for unix help :o)
              Given your inablity to read the orginal post and then trying
              to steer the poor guy wrong, I hope you will take your own
              advice.

              This AVS pays my mortgage!

              Comment

              • webair
                Confirmed User
                • Feb 2002
                • 8531

                #8
                alex

                contact your host they should be able to set that up for you if they cant/dont then you should not be hostng there


                ~ Webair Dedicated Cloud Serversâ„¢ ~ WEBAIR VSYSâ„¢ Virtual Hosting Platform ~ Superior CDN Network ~
                ~ Managed Dedicated hosting Specialists ~ DISCOUNT DOMAIN NAMES! ~ WEBAIR FUSION IO MANAGED CLOUD SERVERS! ~


                ICQ: 243116321 - TWITTER - @WEBAIRINC - E-Mail: [email protected]

                Comment

                • RK
                  Confirmed User
                  • Aug 2001
                  • 868

                  #9
                  You could also use a symbolic link.
                  Does anyone look down here?

                  Comment

                  • s9ann0
                    Confirmed User
                    • Sep 2001
                    • 4873

                    #10
                    Originally posted by some_idiot


                    Given your inablity to read the orginal post and then trying
                    to steer the poor guy wrong, I hope you will take your own
                    advice.
                    well as I read it he says he wants to use one directory as a subdirectory across two domains so I posted that as well so now he can choose...


                    you patronising hahahaha, take some advice from me and stick your head back in your asshole

                    Comment

                    • s9ann0
                      Confirmed User
                      • Sep 2001
                      • 4873

                      #11
                      where it says hahahaha its meant to say c*u*n*t

                      Comment

                      • Wilbo
                        Confirmed User
                        • Feb 2001
                        • 2082

                        #12
                        Originally posted by RK
                        You could also use a symbolic link.
                        I would do this. That way you only have to ftp to one directory to effect them all exactly the same.

                        ln -s /path/to/directory /path/to/where/you/want/it/to/be

                        Comment

                        • aleck
                          Confirmed User
                          • Jan 2001
                          • 940

                          #13
                          don't do a symbol link. it'll slow things a bit.

                          use ServerAlias in httpd.conf
                          Last edited by aleck; 01-25-2004, 04:40 PM.
                          come trade shemale traffic here

                          Comment

                          Working...