PDA

View Full Version : httpd VirtualHost Help me~



JackTon
01-19-2009, 11:28 PM
Squid

http_port 80 vhost vport
cache_peer 111.111.111.111 parent 8080
httpd.conf

Listen *:8080ips.conf

NameVirtualHost 111.111.111.111:8080/usr/local/directadmin/data/templates

httpd.conf

Port 8080
Listen 8080
Listen 443

ips_virtual_host.conf
virtual_host.conf
virtual_host_sub.conf
virtual_host2.conf
virtual_host2_sub.conf
redirect_virtual_host.conf


<VirtualHost |IP|:8080>./build apache



httpd:Warning: DocumentRoot [/home/user4/domains/1111.net/public_html/test] does not exist
[Tue Jan 20 14:15:14 2009] [warn] VirtualHost 111.111.111.111:8080 overlaps with VirtualHost 111.111.111.111:8080,
the first has precedence, perhaps you need a NameVirtualHost directive
.........................................
[Tue Jan 20 14:15:14 2009] [warn] NameVirtualHost 111.111.111.111:80 has no VirtualHosts

floyd
01-20-2009, 05:04 AM
Is there a question in there somewhere?

ben29
01-25-2009, 05:32 AM
hi
add the ips+port like here
nano /etc/httpd/conf/extra/httpd-vhosts.conf

floyd
01-25-2009, 07:11 AM
I still don't know what the question is.

Evangel
10-02-2009, 06:05 AM
The problem remains :)
/etc/httpd/conf/ips.conf
Contains:


# Auto generated apache config file by DirectAdmin version 1.33.7
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

LogFormat "%O \"%r\"" homedir
NameVirtualHost 111.111.111.111:80
NameVirtualHost 111.111.111.111:443

We change


# Auto generated apache config file by DirectAdmin version 1.33.7
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

LogFormat "%O \"%r\"" homedir
NameVirtualHost 111.111.111.111:8080
NameVirtualHost 111.111.111.111:443

We keep and leave.
After addition Users back we receive


# Auto generated apache config file by DirectAdmin version 1.33.7
# Modifying this file is not recommended as any changes you make will be
# overwritten when you add/remove ip's through DirectAdmin.

LogFormat "%O \"%r\"" homedir
NameVirtualHost 111.111.111.111:80
NameVirtualHost 111.111.111.111:443

smtalk
10-03-2009, 04:10 AM
chattr +i /etc/httpd/conf/ips.conf

Evangel
10-05-2009, 01:57 PM
chattr +i /etc/httpd/conf/ips.conf




server# chattr +i /etc/httpd/conf/ips.conf
chattr: Command not found.
server#

smtalk
10-06-2009, 02:38 AM
yum -y install e2fsprogs


And try again.

Evangel
10-07-2009, 08:14 AM
yum -y install e2fsprogs


And try again.



server# pkg_add -r e2fsprogs
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-7.2-release/Latest/e2fsprogs.tbz... Done.

===========================================================================
Note: FreeBSD's ext2fs module, as of release 7.1, cannot mount ext2 file
systems with 256-byte large inodes, only 128 byte sized. Unfortunately,
256 byte is the default size with many recent Linux distributions.
The inode size cannot be changed after creation of a file system either.
This port overrides the default to 128 bytes, but this only applies to ext2
file systems created with this particular mke2fs. If you format ext2 file
systems with other operating systems, make sure that mke2fs is called with
"-I 128" for partitions that you plan to share with FreeBSD.
Remember to backup your data before re-formatting any existing file
systems!
---------------------------------------------------------------------------
Note: this is a modified version of the e2fsprogs package, not the official
package. Report all building and run-time trouble that originates in the
package to the port maintainer, <matthias.andree@gmx.de>.
===========================================================================

server#
:(

scsi
10-07-2009, 11:28 AM
On freebsd use:



chflags schg /etc/httpd/conf/ips.conf

Evangel
10-07-2009, 08:01 PM
On freebsd use:



chflags schg /etc/httpd/conf/ips.conf

Like works :)
I suspect some time will suffice :)
Thanks.

noodly
12-10-2009, 01:35 PM
Any other option to change it in system template or sth ??