Reinstalled my server last night (yey! :rolleyes: ) and now I can't sort out the virtual servers in Apache. Attached is one of the directives for one of the virtual servers (it should run phpmyadmin). However, when I go to the address it comes up with the server root.

Anyone got any thoughts on this?

    It seems good.
    The number of apache version (2.5.4) are rigth?

    Try to start apache with -S option, thats list the virtual servers active.

    (And I usually put even ServerName directive... but I don't really know what means... 😃)

      Originally posted by bad76
      It seems good.
      The number of apache version (2.5.4) are rigth?

      What do you mean? I'm running 1.3.2.6 (I run Debian and its the latest version that seems to be in the apt libraries)

      (And I usually put even ServerName directive... but I don't really know what means... 😃)

      I tried adding that. Didn't work.

        Originally posted by piersk
        What do you mean?

        Doh! I'm sorry...
        The version number is of phpMyAdmin... "phpMyAdmin-2.5.4 "

        ... Is 2.5.4 rigth?

          Yeah, but it's the same for other virtual servers, this was just an example of one of the ones I was using.

            And -S option?
            works it only for window version?
            give you a complete list?

              Erm... started it with the -S option and got this:

              VirtualHost configuration:
              212.159.97.10:80 is a NameVirtualHost
              default server house166gpa.plus.com (/etc/apache/httpd.conf:1018)
              port 80 namevhost house166gpa.plus.com (/etc/apache/httpd.conf:1018)
              port 80 namevhost rover.diablog.co.uk (/etc/apache/httpd.conf:1024)

              no idea what it means. house166gpa.plus.com is the reverse lookup of the IP that "outsiders" (i.e. anyone not on my side of the router) would see. rover.diablog.co.uk (the server) is an alias for that IP.

              Anyway, as you can see, mysql.diablog.co.uk is not there.

              I've attached the output from the -S bit to this post...

                This mean your configuration are not working...

                This is the mine:
                default server pchome (c:/server/apache/conf/httpd.conf:983)
                port 80 namevhost pchome (c:/server/apche/conf/httpd.conf:983)
                port 80 namevhost test (c:/server/apache/conf/httpd.conf:991)
                port 80 namevhost thenet (c:/server/apache/conf/httpd.conf:998)
                port 80 namevhost board (c:/server/apache/conf/httpd.conf:1005)
                ...

                As you see I've one entry for each running virtual host.

                Try with -T... this one give for you a check of httpd.conf...

                  Nope, syntax is ok.

                  I'm tempted to post my httpd.conf, but would that be secure...

                    What about NameVirtualHost setting?
                    usually is

                    NameVirtualHost *

                      Sod it. I'm desperate...

                      [edit]I've changed the NameVirtualHost setting to 192.168.7.100 (the IP of the server), but it didn't work[/edit]

                        :mad:
                        I can't look any difference, but this what I'm posting work fine.

                        But DNS are ok? Or there some .htaccess? Ora any include in conf that don't allow the virtual hosting?

                          Write a Reply...