 |
 |
Basic Apache help
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2003
Location: Wisconsin
Status:
Offline
|
|
hello, having a hard time getting my web server running again.
G5-Server:~ root# sudo apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
Processing config directory: /etc/httpd/sites/*.conf
Processing config file: /etc/httpd/sites/0000_any_80_somename.no-ip.org.conf
Syntax error on line 3 of /etc/httpd/sites/0000_any_80_somename.no-ip.org.conf:
ServerName takes one argument, The hostname of the server
/usr/sbin/apachectl restart: httpd could not be started
anyone help me with that please?
thanks
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status:
Offline
|
|
It would be helpful to see line 3 of your configuration file.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2003
Location: Wisconsin
Status:
Offline
|
|
Originally Posted by mduell
It would be helpful to see line 3 of your configuration file.
how do i do that?
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status:
Offline
|
|
Open up the file (0000_any_80_somename.no-ip.org.conf in /etc/httpd/sites/), and copy and paste the third line here.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2003
Location: Wisconsin
Status:
Offline
|
|
# Default Virtual Host Configuration
<VirtualHost *:16080>
ServerName
ServerAdmin "A1acran"
DocumentRoot "/Library/WebServer/Documents"
DirectoryIndex "index.html" "index.php"
CustomLog "/var/log/httpd/access_log"
ErrorLog "/var/log/httpd/error_log"
ErrorDocument 404 /error.html
<IfModule mod_ssl.c>
SSLEngine Off
SSLLog "/var/log/httpd/ssl_engine_log"
SSLCertificateFile "/etc/certificates/Default.crt"
SSLCertificateKeyFile "/etc/certificates/Default.key"
SSLCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:+ eNULL"
</IfModule>
<IfModule mod_dav.c>
DAVLockDB "/var/run/davlocks/.davlockany_80_default"
DAVMinTimeout 600
</IfModule>
<Directory "/Library/WebServer/Documents">
Options All -Indexes -ExecCGI -Includes +MultiViews
AllowOverride None
<IfModule mod_dav.c>
DAV Off
</IfModule>
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
<IfModule mod_alias.c>
</IfModule>
LogLevel warn
ServerAlias *
</VirtualHost>
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status:
Offline
|
|
Given the error (ServerName takes one argument, The hostname of the server), the third line (ServerName), and the formatting of other nearby lines, it should be pretty obvious what you need to do.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2003
Location: Wisconsin
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |