Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,207
» Latest member: Meup
» Forum threads: 4,029
» Forum posts: 16,404

Full Statistics

Online Users
There are currently 386 online users.
» 0 Member(s) | 383 Guest(s)
Bing, Google, Yandex

Latest Threads
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
2025-05-13, 01:41 PM
» Replies: 0
» Views: 58
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 73,669
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 30,313
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,640
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,044
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 40,611
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 103,255
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 44,041
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 34,499
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 40,111

 
  vhost
Posted by: dzvonyo - 2008-08-05, 09:55 AM - Forum: LAMP - Replies (5)


Trying to configure Vhost on Ubuntu Server but not going well.

I can configure one site and everything work well,

as soon as I configure second site not able to access any site

 

 

using xxx.xx.4.10/firstsite

OR

xxx.xx.4.10/secondsite

 

So when configuring Vhost what should be done?

i.e

what changes should be done

/etc/apache2/sites-available/default

/etc/apache2/sites-available/www.firstsite.com

/etc/apache2/sites-available/www.second.com

 

OR SHOULD I be changing

 

etc/apache2/apache.conf

 

 

 

Here are my configuration where should I change

(I have just change the first part and the rest left it as default)

 

sudo nano /etc/apache2/sites-available/default

NameVirtualHost *:80

<VirtualHost *:80>

ServerAdmin webmaster@localhost

 

DocumentRoot /var/www/firstsite

ServerName www.firstsite.com

ServerAlias firstsite.com

#Second site

</Virtualhost>

<VirtualHost *:80>

DocumentRoot /var/www/secondsite

ServerName www.secondsite.com

ServerAlias secondsite.com

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

AllowOverride None

 

 

***********

sudo nano /etc/apache2/sites-available/www.firstsite.com

NameVirtualHost *:80

<VirtualHost *:80>

ServerAdmin webmaster@localhost

 

DocumentRoot /var/www/firstsite

ServerName www.firstsite.com

ServerAlias firstsite.com

 

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

<Directory /var/www/>

 

 

 

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

allow from all

</Directory>

 

**********

sudo nano /etc/apache2/sites-available/www.second.com

NameVirtualHost *:80

<VirtualHost *:80>

ServerAdmin webmaster@localhost

 

DocumentRoot /var/www/secondsite

ServerName www.secondsite.com

ServerAlias secondsite.com

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

<Directory /var/www/>

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

allow from all

</Directory>

****

/etc/apache2/sites-available# ls -l

total 12

-rw-r--r-- 1 root root 1236 2008-08-05 09:32 default

-rw-r--r-- 1 root root 1091 2008-08-05 09:28 www.firstsite.com

-rw-r--r-- 1 root root 1080 2008-08-05 09:34 www.secondsite.com

 

 

Reloading apache I got the following error

 

 

# sudo /etc/init.d/apache2 reload

* Reloading web server config apache2

apache2: Could not reliably determine the server's fully qualified domain nam

using xxx.xxxx.xxx.10 for ServerName

[Tue Aug 05 09:57:01 2008] [warn] NameVirtualHost *:80 has no VirtualHosts

[Tue Aug 05 09:57:01 2008] [warn] NameVirtualHost *:80 has no VirtualHosts

[Tue Aug 05 09:57:01 2008] [warn] NameVirtualHost *:80 has no VirtualHosts

Print this item

  UK Linux Pre-Installs Hit 2.8%
Posted by: hybrid - 2008-08-05, 08:35 AM - Forum: Linux News - No Replies


Quote:schliz alerts us to a story out of the UK PC distribution channel. It seems that the percentage of systems pre-installed with Linux has gone up 28 times since Vista shipped, from 0.1% in January 2007 to 2.8% last June. Still not huge numbers, but Apple did OK for years with similar market share figures. Linux's headway comes in the face of the marketing money that manufacturers pass out to distributors, money that has historically been important to their profits: "In the late 1990s competition was so keen that distributors were said to sell at or below cost and take their profit direct from the marketing funds they received from vendors. Vendors nowadays keep watch to see their marketing funds are actually spent on marketing, but distribution runs on single figure profits and vendor marketing funds are a crucial aid."
 

Read more

 

Encouraging news!

Print this item

  Configuring ssh after a Synaptic install?
Posted by: websmythe - 2008-08-04, 10:29 PM - Forum: Debian - Replies (2)


-------------

RESOLVED

-------------

Hi. I running on Debian 4, installed the openssh-server /w the blacklist & rssh & molly-guard using Synaptic Package Manager, but can't connect using PuTTY from my Vista box. Could somebody show me what I need to enable in the config files (see below) to get it to work? Thanx.

 

The story so far...

I've read the man pages, which seem pretty daunting at this point, and been trawling the net, where I've found lots of juicy tidbits, but nothing that walks me thru it line by line. It's not PuTTY cause I had it working last nite when I did a commandline install using "apt-get install ssh", but I also got some sort of legacy message. As I've done a reinstall since then, I thought I'd try and avoid the legacy issue and use Synaptic. From what I have found on the net, all the needed files "seem" to be in the right place, but it looks like there's a bunch of stuff that is commented out that shouldn't be (I think...)

 



Code:
# /etc/ssh/sshd_config
# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile    %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding no
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes






Code:
# /etc/ssh/ssh_config
# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

Host *
#   ForwardAgent no
#   ForwardX11 yes
#   ForwardX11Trusted yes
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   HostbasedAuthentication no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no




Print this item

  KDE 4.0 Firefox 3 theme
Posted by: hybrid - 2008-08-04, 05:39 PM - Forum: KDE - No Replies


For those of us now running the KDE 4.0 series, there is a Firefox 3.0 theme being developed to foster better visual integration between KDE 4 and Firefox.

 

The theme uses the Oxygen icon set and also includes other visual tweaks to best match the visual style of KDE 4.

 

[Image: 2575739126_f15343af52.jpg]

 

It's at an early stage right now, so use with caution. The link you'll want is:

 

http://ramonantonio.net/kde-firefox/

Print this item

  Low Memory Install
Posted by: websmythe - 2008-08-04, 12:10 AM - Forum: Fedora 8 - Replies (1)


Hi. So I'm doing an install on a box that's only got 128MB memory (which i know is below the recommended amount) :)

Everything is fine until I reboot, at which point I am shuttled directly to the login prompt ...cause there ain't enough memory to run in graphics mode(?).

Is there a way to finish the installation in textmode. Has anybody written a How-To if it's possible?

 

I don't particularly need graphics mode cause its just a personal webserver project. I wanna do a xampp/eGroupware install. Doesnt matter how slow it is. And seeing as I miss having a commandline, I'd rather learn the text mode commands and switches anyways. :)

Print this item

  new to linux
Posted by: errhuhblaman - 2008-08-03, 04:54 AM - Forum: Hello - Replies (1)


Hi! I'm new to Linux ... ... well I've still have yet to use it, but i am interested. I have been using windows my entire life and it'd like to try something else.

 

i use computers for gaming and I'm pretty familiar with hardware and drivers but other software and coding I'm unexperienced with. I'm going to be building a computer within the next year or so because my computer that i built 2 years ago is beginning to show its age and it'd like to get a feel before making the switch over to Linux.

 

I've briefed some sites about compatibility with many programs and this is another hurdle I'm going to have to learn to get around. if there is any videos/walkthroughs or any other form of help it would be greatly appreciate!

 

and if you do any online gaming yourself, i might play/played it before too.

Print this item

  Gentoo?
Posted by: Flipstik - 2008-08-03, 04:11 AM - Forum: Just Starting Linux - Replies (3)


I've been looking to try out linux for a while, and was going to install Fedora until I took a look at Gentoo. I know it's not very user-friendly, but i have looked at the handbook on the website and I'm willing to spend a lot of time reading/learning about it. The reason I want to use Gentoo is because I think I would learn a lot from using it.

 

What are your thoughts? Would it be too much of a leap for me to start using Gentoo right away and should I just use Fedora? Thank you for your time and help. :)

Print this item

  KDE 4.1 Released
Posted by: hybrid - 2008-07-29, 05:21 PM - Forum: Linux News - No Replies


Quote:6 months after the release of KDE 4.0, the KDE community today announced the released of the second feature release in the KDE 4 era. Lots of changes have gone into this release and the KDE community hopes to be able to make most early-adopting users happy with this release. Lots of feedback from people trying out KDE 4.0 has gone into KDE 4.1, filling most of the gaps people experienced with the 4.0 releases. Highlights of KDE 4.1 are the KDE PIM suite, which has returned in its KDE 4 incarnation, a more mature Plasma desktop and many, many new features and applications. Make sure to take some time to read through the high-level changelog or even the more detailed feature plan on Techbase. Before you try KDE 4.1, please read the KDE4 End User FAQ and make an educated guess whether KDE 4.1 is for you.
 

Read more

Print this item

  ...convert a bootable CD/DVD into a bootable USBkey?
Posted by: Charles Anthony - 2008-07-27, 05:17 PM - Forum: How Do I? - Replies (1)

How do I convert a bootable CD/DVD (i.e., the disks that come with various linux magazines) into a bootable USBkey -- to install on a laptop that does not have an optical drive?

Print this item

  Secondary hard drive disappeared?
Posted by: Aiffe - 2008-07-20, 01:26 AM - Forum: How Do I? - Replies (1)


Someone else set this computer up for me some time ago, but I had a secondary hard drive mounted that worked fine just yesterday, and has decided to permanently unmount itself. Worse, I had a lot of stuff on it that I would be crushed to lose!

 

So today I tried to download something to it, and at first it appeared normal, went through the directories no problem. But for some reason Firefox's download window didn't come up, and when I tried to go look at the file in the folder, suddenly the folder wouldn't load. The rest of the drive loaded, just that one folder wouldn't come up. Then later on the whole drive seemed to be empty. I'm really sure the file wasn't the problem, as not only do I trust the source, but I later downloaded it to my main hard drive, so I wouldn't be here now if it was an evil hard-drive killing file.

 

I did what every noob does--tried rebooting. Maybe it'll sort itself out, right? Well, it started off the boot with a message that it couldn't mount that hard drive, and offered F1 for continue, and F2 for setup. I chose setup initially, but I didn't know what, if anything, I should change, so I let it be. It now boots without mounting this drive.

 

I tried to run FSCK on it, but it doesn't seem like FSCK can find it. If I've even got the right place. The mount point seems to refer to /mnt/hdd, and that seems to refer to /dev/hdd1, but this....does not exist?

 

I suspect my main hard drive may actually be the corrupt one, as sometimes files seem to unexpectedly break or get lost. Could it be that some file involved in mounting this drive just up and vanished? How do I find out if this is so or not, and if it is, how do I replace/repair it? If I'm completely off base (wouldn't be the first time!) what do I do now? Are my files salvageable? In a word, help!

 

(btw, I am running Gentoo. It seemed like a good idea back when I had someone who liked me enough to fix things for me. >.>)

Print this item