GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   someone with linux can you test something for me? (https://gfy.com/showthread.php?t=1062208)

fris 03-24-2012 05:08 AM

someone with linux can you test something for me?
 
I only have access to freebsd, want to see if this works on linux

Code:

httpd -S 2>&1 | perl -ne 'm@.*port\s+([0-9]+)\s+\w+\s+(\S+)\s+\((.+):.*@ && do { print "$2:$1\n\t$3\n"; $root = qx{grep DocumentRoot $3}; $root =~ s/^\s+//; print "\t$root\n" };'
(nothing bad, just prints a list of domains in your apache)

just let me know if it works.

Klen 03-24-2012 05:10 AM

I dont use apache ;)

mafia_man 03-24-2012 05:53 AM

Quote:

Originally Posted by fris (Post 18842038)
I only have access to freebsd, want to see if this works on linux

Code:

httpd -S 2>&1 | perl -ne 'm@.*port\s+([0-9]+)\s+\w+\s+(\S+)\s+\((.+):.*@ && do { print "$2:$1\n\t$3\n"; $root = qx{grep DocumentRoot $3}; $root =~ s/^\s+//; print "\t$root\n" };'
(nothing bad, just prints a list of domains in your apache)

just let me know if it works.

I don't see anything BSD specific, this should work.

V_RocKs 03-24-2012 08:42 AM

Did not work on my linux boxes.

No output

The Dawg 03-24-2012 08:47 AM

Why not install VM Virtual Box to have access to all?

fris 03-24-2012 09:55 AM

Quote:

Originally Posted by V_RocKs (Post 18842205)
Did not work on my linux boxes.

No output

ya figured.

fuzebox 03-24-2012 10:43 AM

Output is different. You'll want to match against this:

port 80 namevhost domain.com (/etc/httpd/conf.d/domains.conf:3)


All times are GMT -7. The time now is 06:13 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123