Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


4011 posts

Uber Geek
+1 received by user: 523

Trusted

Topic # 65937 9-Aug-2010 20:33
Send private message

Does anyone know if there's an easy way for a page in apache2 (dunno if it needs to be php, cgi or just plain htm) that can list all the directory and location entires on a virtual host?

So I'm playing with reverse proxying to make a portal for home.  I have all the reverse proxying working pretty well. 

Set up like below:

https://servername
      /webmin/server1 > redirects to https://server1:10000
      /webmin/server2 > redirects to https://server2:10000
      /usage                > redirects to https://server3/usage
      /gbpvr                > redirects to http://server4:7467/gbpvr

So that's all working well :D

But what I'd like to do is make a page as the https://servername level that will list all of those sub domains.

Any ideas?




Previously known as psycik

NextPVR: 
Gigabyte AMD A8 Brix --> Samsung LA46A650D via HDMI, NextPVR,
OpenHAB: ODroid C2 eMMC DriveOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 2012 
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


Create new topic
264 posts

Ultimate Geek
+1 received by user: 95


  Reply # 365623 9-Aug-2010 20:43
Send private message

From the shell run

$ apache2ctl -t -D DUMP_VHOSTS 

It does not require administrator privileges, so I guess you can create a simple php script to parse its output to get something more "user friendly"



4011 posts

Uber Geek
+1 received by user: 523

Trusted

  Reply # 365640 9-Aug-2010 21:28
Send private message

hmm, great start. But i only have the one virtual host. Anything that can get the locations or directories of a single vhost?




Previously known as psycik

NextPVR: 
Gigabyte AMD A8 Brix --> Samsung LA46A650D via HDMI, NextPVR,
OpenHAB: ODroid C2 eMMC DriveOpenHAB with Aeotech ZWave Controller, Raspberry PI, Wemos D1 Mini, Zwave and Bluetooth LE Sensors
Media:Chromecast v2, ATV4, Roku3, HDHomeRun Dual
Windows 2012 
Host (Plex Server/Crashplan): 2x2TB, 2x3TB, 1x4TB using DriveBender, Samsung 850 evo 512 GB SSD, Hyper-V Server with 1xW10, 1xW2k8, 2xUbuntu 16.04 LTS, Crashplan, NextPVR channel for Plex,NextPVR Metadata Agent and Scanner for Plex


Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.