You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by po...@apache.org on 2010/08/05 16:12:25 UTC

svn commit: r982629 - /httpd/httpd/trunk/server/vhost.c

Author: poirier
Date: Thu Aug  5 14:12:25 2010
New Revision: 982629

URL: http://svn.apache.org/viewvc?rev=982629&view=rev
Log:
With -S, show ServerAlias values that go with the virtual hosts

Modified:
    httpd/httpd/trunk/server/vhost.c

Modified: httpd/httpd/trunk/server/vhost.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/vhost.c?rev=982629&r1=982628&r2=982629&view=diff
==============================================================================
--- httpd/httpd/trunk/server/vhost.c (original)
+++ httpd/httpd/trunk/server/vhost.c Thu Aug  5 14:12:25 2010
@@ -447,6 +447,26 @@ static void dump_a_vhost(apr_file_t *f, 
         apr_file_printf(f, "namevhost %s (%s:%u)\n",
                         nc->server->server_hostname,
                         nc->server->defn_name, nc->server->defn_line_number);
+        if (nc->server->names) {
+            apr_array_header_t *names = nc->server->names;
+            char **name = (char **)names->elts;
+            int i;
+            for (i = 0; i < names->nelts; ++i) {
+                if (name[i]) {
+                    apr_file_printf(f, "%16s alias %s\n", "", name[i]);
+                }
+            }
+        }
+        if (nc->server->wild_names) {
+            apr_array_header_t *names = nc->server->wild_names;
+            char **name = (char **)names->elts;
+            int i;
+            for (i = 0; i < names->nelts; ++i) {
+                if (name[i]) {
+                    apr_file_printf(f, "%16s wild alias %s\n", "", name[i]);
+                }
+            }
+        }
     }
 }