Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Vhost Pains

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Big Jobs
n00b
n00b
Posts: 14
Joined: Thu Feb 12, 2004 9:39 am
Location: Sydney
Contact:
Contact Big Jobs
Website

Vhost Pains

  • Quote

Post by Big Jobs » Fri Sep 02, 2005 4:01 pm

Hey All,

Im trying to setup a vhost for my phpmyadmin install as the /var/www/localhost/htdocs is used for web development testing and im sick of having to worry about deleting the phpmyadmin directory ... but anyways, I seem to have a different install than the gentoo wiki HOWTO_Apache2_VirtualHosts thingo so im a bit stuck.

This is my /etc/apache2/vhosts.d/00_default_vhost.conf

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
# CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
#</VirtualHost>


#
# The First Virtual Host is also your DEFAULT Virtual Host.
# This means any requests that do not match any other vhosts will
# goto this virtual host.
#
<VirtualHost *:80>
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/localhost/htdocs"

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/localhost/htdocs">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>

<IfModule peruser.c>
# this must match a Processor
ServerEnvironment apache apache

# these are optional - defaults to the values specified above
MinSpareProcessors 4
MaxProcessors 20
</IfModule>
</VirtualHost>

### PhpMyAdmin ###
<VirtualHost *:80>
ServerName phpmyadmin.bigjobbies
DocumentRoot /var/www/phpmyadmin/htdocs
<Directory "/var/www/phpmyadmin/htdocs">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
When i restart apache2 everything seems to be ok ... but typing phpmyadmin.bigjobbies just returns nothing.

Any help would be great.
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

  • Quote

Post by nixnut » Fri Sep 02, 2005 4:30 pm

Moved from Installing Gentoo to Networking & Security.
Networking stuff, not installing gentoo
Top
christsong84
Veteran
Veteran
User avatar
Posts: 1003
Joined: Sun Apr 06, 2003 10:04 pm
Location: GMT-8 (Spokane)

  • Quote

Post by christsong84 » Fri Sep 02, 2005 6:26 pm

phpmyadmin.bigjobbies needs to be in your hosts file to it will resolve properly...that'd be the first thing to check. :)
while(true) {self.input(sugar);} :twisted:
Top
Big Jobs
n00b
n00b
Posts: 14
Joined: Thu Feb 12, 2004 9:39 am
Location: Sydney
Contact:
Contact Big Jobs
Website

  • Quote

Post by Big Jobs » Sat Sep 03, 2005 10:10 am

Sorry for the lame questions, But would that be the hosts file on bigjobbies? or the hosts file on my windows box?

The /etc/hosts file on bigjobbies currently looks like this
127.0.0.1 storageslut storageslut.bigjobbies
10.1.1.100 storageslut storageslut.bigjobbies
10.1.1.1 router router.local
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Do i add:
10.1.1.100 phpmyadmin phpmyadmin.bigjobbies
Top
spamspam
Apprentice
Apprentice
Posts: 153
Joined: Fri Dec 05, 2003 10:34 pm

  • Quote

Post by spamspam » Sun Sep 25, 2005 8:07 pm

It needs to be on whatever machine you're browsing from.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic