## Context of my situation: ## i have some name-based virtual hosts running on my IP ## address 123.123.123.123 ## now I'd like to use http://123.123.123.123:8080 to access some my ## web-tools like phppgadmin ## well, here we go with my first simplistic try... ## do i _need_ to set some things except of NameVirtualHost like Port/Listen ## here before definition of the VirtualHost entries to get things working? ## vak says: jMCg, then i add port 80 here: NameVirtualHost 123.123.123.123:80 ## my name-based virtual host Nr.1 ServerAdmin asdf@gmail.com ServerName bla-bla.tld ServerAlias www.bla-bla.tld DocumentRoot /var/www/bla-bla.tld/html DirectoryIndex index.htm #If using awstats ScriptAlias /awstats/ /usr/lib/cgi-bin/ #we want specific log file for this server CustomLog /var/www/bla-bla.tld/logs/bla-bla.tld-combined.log combined ErrorLog /var/www/bla-bla.tld/logs/bla-bla.tld-error.log #Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/" #Alias /awstatscss "/usr/local/awstats/wwwroot/css/" Alias /awstats-icon /usr/share/awstats/icon/ ## my name-based virtual host Nr.2 ... ServerName secondone.tld ... ## I want to use my web tools directly via http://123.123.123.123:8080 #### this is how we do this!!!!!!!!!!!!! NameVirtualHost 123.123.123:8080 ServerAdmin asdf@gmail.com #ServerName 123.123.123.123 <<== do i need this?? #### You might need this ;) but not really.. ### does this exist? yes? no? maybe? DocumentRoot /var/www/phppgadmin/htdocs DirectoryIndex index.htm CustomLog /var/www/phppgadmin/logs/phppgadmin-8080-combined.log combined ErrorLog /var/www/phppgadmin/logs/phppgadmin-8080-error.log #### if the above exists and if it's the document root, you are NOT ALLOWED To ACCESS IT. ### you'll never get here anyways...