서버호스팅 ip만 접속되는건 어캐해야되죠? > 자유게시판

자유게시판

서버호스팅 ip만 접속되는건 어캐해야되죠? 정보

서버호스팅 ip만 접속되는건 어캐해야되죠?

본문

ip접속하면 /usr/local/apache2/htdocs/index.php 로 접속 되는데요..
계정을 생성하면 home/계정이생성/ 이렇게되는데요
home/계정/으로 홈페이지 접속되게 할꺼면 어캐해야되나요?

추천
0
  • 복사

댓글 9개

질문 러쉬보다는 도움말을 정독해 보는게 도움이 될때가 더 많습니다.

http://kr.dnsever.com/help/wiki/wiki.php?DNSEverHelpPage
음,,아파치 설정에서 지정을 해주셔야 합니다~~~

ip로 칠때 /usr/local/apache/htdocs/ 가 기본설정이고 ip도 /home/계정 으로 출력이 되게하려면
경로를 수정하셔야죠,,,/usr/local/apache/htdocs ---> /home/계정

질문하신 내용이 이게 맞나요? ㅎㅎ
네맞아요..^^ 감사합니다... 근데 아파치 설정은 어떻게 하는게...;; 제가초보라서 ㅠ_ㅠ 자세히점 알려주심안되나요.?
음,,버전마다 약간 차이는 있겠지만 /usr/local/apache/conf/httpd.conf 파일을 열어서
DocumentRoot "/usr/local/apache2/htdocs" 이런 부분이 보인다면 주석처리 하시고

DocumentRoot "/home/원하는계정/public_html" 해주시면 되겠네요,,,

그리고 아파치는 재가동 해주시고요~ apachectl graceful 명령어로~~~
경로를 이렇게
<VirtualHost 114.207.113.76>
ServerAdmin *** 개인정보보호를 위한 이메일주소 노출방지 ***
DocumentRoot /usr/local/apache2/htdocs
ServerName showonline.co.kr
ErrorLog logs/cafe.showonline.co.kr-error_log
CustomLog logs/cafe.showonline.co.kr-access_log common
</VirtualHost>
잡아줬는데요.. cafe.showonline.co.kr에 나오는 파일만 나오고요..
showonline.co.kr해도 자꾸cafe.showonline.co.kr에있는 파일이 보여요 ㅠㅠ
httpd.conf 를 전부 열어서 보여드리면요.,..
#
# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned. 
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/foo.log".

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "/usr/local/apache2"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
LoadModule php5_module        modules/libphp5.so
LoadModule redurl_module      modules/mod_url.so
#

<IfModule !mpm_netware_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch. 
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon
</IfModule>

# '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.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. http://www.example.com/subscription_info.html
#

#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files.  This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off

# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
#      starting without SSL on platforms with no /dev/random equivalent
#      but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<IfModule mod_url.c>
CheckURL On
</IfModule>
© SIRSOFT
현재 페이지 제일 처음으로