LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2009, 01:37 PM   #1
slvfx
LQ Newbie
 
Registered: Sep 2009
Posts: 29

Rep: Reputation: 15
Need help getting a website networked in apache2 server


Desktop server id is 192.168.1.30.. Apache can't identify the server so it uses the 127.0.1.1. How and where do I fix this. I am copying the file for you to see how it is set up now.

ob@bob-desktop:/etc/apache2/sites-available$ cat picamall.com

<VirtualHost 72.94.246.211:80>


ServerName picamall.com
ServerAdmin slvfx@localhost
ServerAlias www.picamall.com
DocumentRoot /var/www/picamall.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

This is what I get on the restart
ob@bob-desktop:/etc/apache2/sites-available$ sudo /etc/init.d/apache2 restart * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 
Old 11-09-2009, 02:10 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Off the top of my head, I don't recall whether Apache requires a DNS record, or whether an /etc/hosts entry will do. (You could test the latter.)

Failing that, specify ServerName explicitly: http://httpd.apache.org/docs/2.2/mod...tml#servername
 
Old 11-12-2009, 04:42 AM   #3
lewc
Member
 
Registered: Nov 2009
Distribution: Gentoo, Slackware or Debian
Posts: 60
Blog Entries: 1

Rep: Reputation: 18
content removed

Last edited by lewc; 11-27-2009 at 03:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access Apache2 website from internet eoldynski Linux - Newbie 10 07-05-2008 07:18 PM
How to Stop Website theft with Apache2 lucastic Linux - Security 4 08-27-2007 07:08 PM
Location of website statistics for apache2 1veedo Linux - Newbie 1 04-20-2006 09:51 AM
my apache2 website unable to see...firestarter? rasgward Linux - Security 1 12-20-2005 02:29 PM
Managing website and Apache2 gfx Linux - General 5 06-02-2003 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration