Im trying to set up 2 vhosts on gentoo. I got vhost1.nl and vhost2.nl. For some reason i when i visit vhost2.nl it redirects me to vhosts1.nl and i cannot figuere out why.
# /etc/conf.d/apache2: config file for /etc/init.d/apache2
# When you install a module it is easy to activate or deactivate the modules
# and other features of apache using the APACHE2_OPTS line. Every module should
# install a configuration in /etc/apache2/modules.d. In that file will have an
# <IfDefine NNN> directive where NNN is the option to enable that module.
#
# Here are the options available in the default configuration:
#
# AUTH_DIGEST Enables mod_auth_digest
# AUTHNZ_LDAP Enables authentication through mod_ldap (available if USE=ldap)
# CACHE Enables mod_cache
# DAV Enables mod_dav
# ERRORDOCS Enables default error documents for many languages.
# INFO Enables mod_info, a useful module for debugging
# LANGUAGE Enables content-negotiation based on language and charset.
# LDAP Enables mod_ldap (available if USE=ldap)
# MANUAL Enables /manual/ to be the apache manual (available if USE=docs)
# MEM_CACHE Enables default configuration mod_mem_cache
# PROXY Enables mod_proxy
# SSL Enables SSL (available if USE=ssl)
# SUEXEC Enables running CGI scripts (in USERDIR) through suexec.
# USERDIR Enables /~username mapping to /home/username/public_html
#
#
# The following two options provide the default virtual host for the HTTP and
# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache
# will not listen for incomming connections on the approriate port.
#
# DEFAULT_VHOST Enables name-based virtual hosts, with the default
# virtual host being in /var/www/localhost/htdocs
# SSL_DEFAULT_VHOST Enables default vhost for SSL (you should enable this
# when you enable SSL)
#
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D PHP5 -D PROXY -D PROXY_HTML"
# Extended options for advanced uses of Apache ONLY
# You don't need to edit these unless you are doing crazy Apache stuff
# As not having them set correctly, or feeding in an incorrect configuration
# via them will result in Apache failing to start
# YOU HAVE BEEN WARNED.
# ServerRoot setting
#SERVERROOT=/usr/lib/apache2
# Configuration file location
# - If this does NOT start with a '/', then it is treated relative to
# $SERVERROOT by Apache
#CONFIGFILE=/etc/apache2/httpd.conf
# Location to log startup errors to
# They are normally dumped to your terminal.
#STARTUPERRORLOG="/var/log/apache2/startuperror.log"
# A command that outputs a formatted text version of the HTML at the URL
# of the command line. Designed for lynx, however other programs may work.
#LYNX="lynx -dump"
# The URL to your server's mod_status status page.
# Required for status and fullstatus
#STATUSURL="http://localhost/server-status"
# Method to use when reloading the server
# Valid options are 'restart' and 'graceful'
# See http://httpd.apache.org/docs/2.2/stopping.html for information on
# what they do and how they differ.
#RELOAD_TYPE="graceful"
http.conf:
Code:
# cat httpd.conf
# This is a modification of the default Apache 2.2 configuration file
# for Gentoo Linux.
#
# Support:
# http://www.gentoo.org/main/en/lists.xml [mailing lists]
# http://forums.gentoo.org/ [web forums]
# irc://irc.freenode.net#gentoo-apache [irc chat]
#
# Bug Reports:
# http://bugs.gentoo.org [gentoo related bugs]
# http://httpd.apache.org/bug_report.html [apache httpd related bugs]
#
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
# with ServerRoot set to "/usr" will be interpreted by the
# server as "/usr/var/log/apache2/foo.log".
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
ServerRoot "/usr/lib/apache2"
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
# Do not change manually, it will be overwritten on upgrade.
#
# The following modules are considered as the default configuration.
# If you wish to disable one of them, you may have to alter other
# configuration directives.
#
# Change these at your own risk!
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
User apache
Group apache
# Supplemental configuration
#
# Most of the configuration files in the /etc/apache2/modules.d/ directory can
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
# or to modify the default configuration of the server.
#
# To know which flag to add to APACHE2_OPTS, look at the first line of the
# the file, which will usually be an <IfDefine OPTION> where OPTION is the
# flag to use.
Include /etc/apache2/modules.d/*.conf
# Virtual-host support
#
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we
# include a default vhost (enabled by adding -D DEFAULT_VHOST to
# APACHE2_OPTS in /etc/conf.d/apache2).
Include /etc/apache2/vhosts.d/*.conf
# vim: ts=4 filetype=apache
Then my conf in /etc/apache2/vhosts.d/*.conf
Code:
# Virtual Hosts
#
# 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.2/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.
<IfDefine DEFAULT_VHOST>
# see bug #178966 why this is in here
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
# Use name-based virtual hosting.
NameVirtualHost *:80
# When virtual hosts are enabled, the main host defined in the default
# httpd.conf configuration will go away. We redefine it here so that it is
# still available.
#
# If you disable this vhost by removing -D DEFAULT_VHOST from
# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
# the default.
Also, what might be something to worth mentioning, is that on vhost1.nl runs a opensource CMS called drupal. I want vhost1.nl redirected to WWW.vhost1.nl. On vhost2.nl is running a plain simple website that i also want to redirect to www. That's why i made the following .htaccess files:
Have you noticed that many websites don't quite look the same on Linux than they do other computers?
This is because many of the fonts web designers expect to be installed on any computer don't generally come with Linux. You can install them, however, and make websites look much more attractive and 'as the designer intended'.
This is an update to anyweb's tutorial How to Install Microsoft TTF Fonts in Red Hat. Since that tutorial was written, it is much easier with most modern distributions to install the fonts.
Why do you want the Microsoft fonts?
Most Linux distributions ship without this pack of fonts distributed by Microsoft, but most websites assume that you have this base set of fonts installed. What that practically means is that many websites will have weird-looking fonts and will not display as the designer intended. Installing the fonts makes your Linux web browsing experience much more familiar and again, things look as intended!
How to Install
In most distributions, it is now very simple to download and install the font pack in one step.
Go to your package manager or software management application (e.g. Ubuntu Software Centre) and search for msttcorefonts. Choose to install that package.
If you can't find or don't want to use the graphical package manager, you can go to a terminal and do:
Code:
sudo apt-get install msttcorefonts
(for Debian, Ubuntu, Linux Mint etc.)
Code:
su -c "yum install msttcorefonts"
(for Fedora, CentOS, RHEL, etc.)
Once the package has been downloaded and installed, you will need to log out and log back in so that your web browser so that it has access to the fonts. Fire up your browser again and you should start to see web pages rendering in the way they were designed to, with those Microsoft fonts.
If you are still having problems and the new fonts aren't showing up, try running this command as root:
I'm thinking of following a cheaper linux course cuz I find that RHCT is a bit too expensive for my budget. Just wondering your opinions on the following.
I've read quite a bit over the web and I still don't seem to understand how linux drivers work. For example getting a wireless driver to work work in linux system. I've read stuff about loading the kernel module and then adding the module to a certain file so that it actually loads etc. I've seen examples of how people do it but they still confuse me and when trying them out I haven't gotten it to work yet. Could someone please help me understand or point me in the right direction of how this works?
This is the best article I found on it, but still haven't trouble understanding it.
It's that time of year again: a new Ubuntu release (or Kubuntu, if that's your thing). Canonical has just released Ubuntu 10.04, Lucid Lynx. This is a long term support release, meaning its supported period is far longer than that of normal releases. It comes with the latest and greatest the Free software world has to offer, while also adding some Ubuntu-specific features, of course.
Firstly let me say that I've tried su - and /sbin/ifconfig it's not there. For some reason I seem to have "lost" it or something because ever since I installed the distro a while back it hasn't been there. I'm running Debian. I do have iwconfig, which for most of my needs works but I'm trying to get the loopback (lo) interface running but without ifconfig that's kind of difficult :P
I do have commands for ifup and ifdown but they don't work because (I'm assuming from reading error outputs) that they call on ifconfig.
If someone could help me out on how to fix/get ifconfig i'd greatly appreciate it.
I am thinking on installing Debian squeeze to replace my ubuntu 9.10 instead of going to 10.04 but I want to know how to add repositories among other things,can anyone please tell me how to step by step?
Posted by: anyweb - 2010-04-20, 06:33 AM - Forum: PCLinuxOS
- No Replies
The distribution itself comes on a single live CD which kicks off with a GRUB boot menu. The GRUB screen gives the user the ability to boot normally, into the live environment, into a console or via various safe modes, or to perform a media check. Additional menus along the bottom of the screen offer support for additional languages, screen resolutions and kernel options.
Booting into the live environment presents the user with a blue-themed KDE desktop. The root and guest account passwords are displayed at the top of the screen and the application menu is displayed in the classic KDE style. Icons on the desktop provide short-cuts to the command line, the user's folders and the system's installer. Along the taskbar are icons providing the user with links to various tools to configure the desktop and to configure the computer (more on the differences between those two shortly). There are also launchers to browse the user's files and start the package manager.
The installer starts off by asking the user to partition their hard disk. The partition editor has an interesting approach to its job, where almost all the controls are either buttons or sliders. While this took a few moments for me to get used to, the layout will probably appeal to less experienced users. Once the disk has been divided up, the installer formats the drive and copies the necessary files over from the CD. This happened without any confirmation, taking me a bit by surprise as generally an installer will warn the user before wiping a partition. Once the copy process is complete, the installer asks the user to configure the boot loader. After configuring the boot loader, the installer locked up for a minute and, finally, showed me a screen asking me to "halt computer".
i have acer emachines atom notebook with fedora preinstalled and it does not have cd drive.i has 160 hdd. i coped xp from pendrive but it not getting started. the file system it is showing ext4 and others. i want remove them, convert the hdd into ntfs and install xp.i have to some project work urgently.HOW DO I REMOVE EXT4 PARTITION OF FEDORA AND MAKE A NTFS PARTITION WITHOUT A CD DRIVE. I HAVE USB PORT TO HAVE A PENDRIVE.....