This is a discussion on Virtual server, httpd.conf error ! within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, i am having problem setting up a virtual server with subdomain !i can't start my apache2 server after ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi, i am having problem setting up a virtual server with
subdomain !i can't start my apache2 server after i've changed the httpd.conf this is what i get: linux:/etc # init.d/apache2 restart Syntax OK Starting httpd2 (prefork) startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1 failed linux:/etc # some part of httpd.conf that i've changed ! hope someone can help me ! thnak you ! -------------------------------------------------------------- # forbid access to the entire filesystem by default <Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> <Directory "/80gig/ftp"> AuthType Basic AuthName "virtualftp.net :: FTP directory" AuthUserFile /usr/local/.htpasswd_virtualftp.net require valid-user </Directory> # use .htaccess files for overriding, AccessFileName .htaccess # and never show them <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> # List of resources to look for when the client requests a directory DirectoryIndex index.html index.html.var ### 'Main' server configuration ############################################# # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # <VirtualHost> definition. These values also provide defaults for # any <VirtualHost> containers you may define later in the file. # # All of these directives may appear inside <VirtualHost> containers, # in which case these default settings will be overridden for the # virtual host being defined. # Include /etc/apache2/default-server.conf Include /etc/apache2/sysconfig.d/include.conf <VirtualHost *:80> ServerAdmin admin@virtualftp.net DocumentRoot /80gig/ftp ServerName virtual.netftp/ftp ErrorLog logs/virtualftp.net.error.log TransferLog logs/virtualftp.net-access_log </VirtualHost> Include /etc/apache2/vhosts.d/*.conf |
|
|||
|
Rohan wrote:
> Hi, i am having problem setting up a virtual server with > subdomain !i can't start my apache2 server after i've changed > the httpd.conf this is > what i get: > > linux:/etc # init.d/apache2 restart > Syntax OK > Starting httpd2 (prefork) startproc: exit status of parent of > /usr/sbin/httpd2-prefork: 1 > failed > linux:/etc # > > some part of httpd.conf that i've changed ! > hope someone can help me ! thnak you ! > > -------------------------------------------------------------- > > # forbid access to the entire filesystem by default > <Directory /> > Options None > AllowOverride None > Order deny,allow > Deny from all > </Directory> > > <Directory "/80gig/ftp"> > AuthType Basic > AuthName "virtualftp.net :: FTP directory" > AuthUserFile /usr/local/.htpasswd_virtualftp.net > require valid-user > </Directory> > > # use .htaccess files for overriding, > AccessFileName .htaccess > # and never show them > <Files ~ "^\.ht"> > Order allow,deny > Deny from all > </Files> > > # List of resources to look for when the client requests a directory > DirectoryIndex index.html index.html.var > > ### 'Main' server configuration ############################################# > # > # The directives in this section set up the values used by the 'main' > # server, which responds to any requests that aren't handled by a > # <VirtualHost> definition. These values also provide defaults for > # any <VirtualHost> containers you may define later in the file. > # > # All of these directives may appear inside <VirtualHost> containers, > # in which case these default settings will be overridden for the > # virtual host being defined. > # > Include /etc/apache2/default-server.conf > > > Include /etc/apache2/sysconfig.d/include.conf > > <VirtualHost *:80> > ServerAdmin admin@virtualftp.net > DocumentRoot /80gig/ftp > ServerName virtual.netftp/ftp <-------- What's this, what ever it is it is not a FQDN > ErrorLog logs/virtualftp.net.error.log > TransferLog logs/virtualftp.net-access_log > </VirtualHost> > > Include /etc/apache2/vhosts.d/*.conf > |